]> xenbits.xensource.com Git - xen.git/commit
x86/msr: fix X2APIC_LAST
authorEdwin Török <edvin.torok@citrix.com>
Wed, 27 Jul 2022 10:57:10 +0000 (12:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 Jul 2022 10:57:10 +0000 (12:57 +0200)
commit13316827faadbb4f72ae6c625af9938d8f976f86
tree3dfefca97e344976741e853e71aacfcc055cd7b8
parentb1f0183e5067fbcb87517795e27929982b2404fb
x86/msr: fix X2APIC_LAST

The latest Intel manual now says the X2APIC reserved range is only
0x800 to 0x8ff (NOT 0xbff).
This changed between SDM 68 (Nov 2018) and SDM 69 (Jan 2019).
The AMD manual documents 0x800-0x8ff too.

There are non-X2APIC MSRs in the 0x900-0xbff range now:
e.g. 0x981 is IA32_TME_CAPABILITY, an architectural MSR.

The new MSR in this range appears to have been introduced in Icelake,
so this commit should be backported to Xen versions supporting Icelake.

Backport: 4.13+

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/include/asm/msr-index.h