Files
acrn-hypervisor/hypervisor/include/arch/x86
Zide Chen bfc08c2812 hv: move msr_bitmap from acrn_vm to acrn_vcpu_arch
At the time the guest is switching to X2APIC mode, different VCPUs in the
same VM could expect the setting of the per VM msr_bitmap differently,
which could cause problems.

Considering different approaches to address this issue:
1) only guest BSP can update msr_bitmap when switching to X2APIC.
2) carefully re-write the update_msr_bitmap_x2apic_xxx() functions to
   make sure any bit in the bitmap won't be toggled by the VCPUs.
3) make msr_bitmap as per VCPU.

We chose option 3) because it's simple and clean, though it takes more
memory than other options.

BTW, need to remove const modifier from update_msr_bitmap_x2apic_xxx()
functions to get it compiled.

Tracked-On: #3166
Signed-off-by: Zide Chen <zide.chen@intel.com>
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
2019-05-24 11:37:13 +08:00
..
2019-05-13 10:12:20 +08:00
2019-02-28 11:22:29 +08:00
2019-05-15 09:31:43 +08:00
2019-02-22 13:14:36 +08:00
2019-01-21 13:49:54 +08:00
2019-05-16 10:33:01 +08:00
2018-12-19 09:07:14 +08:00
2019-03-15 14:09:56 +08:00
2019-03-22 08:38:13 +08:00
2019-05-22 10:01:20 +08:00
2019-05-22 16:36:03 +08:00
2019-05-07 09:10:13 +08:00