[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] x86/S3: Drop {save,restore}_rest_processor_state() completely


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 29 Apr 2020 12:32:29 +0100
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@xxxxxxxxxx; spf=Pass smtp.mailfrom=Andrew.Cooper3@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Wed, 29 Apr 2020 11:32:47 +0000
  • Ironport-sdr: Umv1e6mIv9aR8mAxOwSrXA9kGgUL7UNKO+HNgDRQBRUgsLtmUeLzg1Q7/er83xjh2oqVeefWJT fGdwsPSLU2f4tZV++3/Fxov9Jyh0PbxEtw/pODVrv79ey6dyj/jIpBhMvu8NCgKoaIj1wvjnFx xzBqQ52wU9KvCequpVpBImq65M698ZMjmg3iDxK19ElWE4k+c0d7pLRB4HH+OGOyQYDZ9iAcJJ RgS6RiFqHaVHZ6PNHKF3/aJKAczw2w6HIk8/6zKC9gqjlRn40Bk/lHoiNiGMRAN2cTWiZJc3wN E/k=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 29/04/2020 12:16, Jan Beulich wrote:
> On 29.04.2020 13:09, Andrew Cooper wrote:
>> --- a/xen/arch/x86/boot/trampoline.S
>> +++ b/xen/arch/x86/boot/trampoline.S
>> @@ -91,6 +91,11 @@ trampoline_protmode_entry:
>>          and     %edi,%edx
>>          wrmsr
>>  1:
>> +        /* Set up PAT before enabling paging. */
>> +        mov     $XEN_MSR_PAT & 0xffffffff, %eax
>> +        mov     $XEN_MSR_PAT >> 32, %edx
>> +        mov     $MSR_IA32_CR_PAT, %ecx
>> +        wrmsr
> Doesn't this also eliminate the need for cpu_init() doing this?
> If you agree with that one also dropped
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

That doesn't cover the BSP on either the legacy or EFI paths.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.