diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-08-27 11:13:50 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-08-27 11:13:50 +0200 |
commit | 784ce3fd05476ffe46bf54579f3927c777eb2c3b (patch) | |
tree | 525f48dc4d1e27693edabb167207178ef3943e3d /xen/include/asm-x86 | |
parent | d838ac2539cf1987bea6e15662fd6a80a58fe26d (diff) | |
download | xen-784ce3fd05476ffe46bf54579f3927c777eb2c3b.tar.gz xen-784ce3fd05476ffe46bf54579f3927c777eb2c3b.tar.bz2 xen-784ce3fd05476ffe46bf54579f3927c777eb2c3b.zip |
VMX: convert EOI exit bitmap to a proper bitmap
... allowing bitmap operations to be used on it, making things
consistent with struct pi_desc's pir field, and shrinking overall
source code size.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86')
-rw-r--r-- | xen/include/asm-x86/hvm/vmx/vmcs.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/xen/include/asm-x86/hvm/vmx/vmcs.h b/xen/include/asm-x86/hvm/vmx/vmcs.h index f30e5ac224..38c24948d7 100644 --- a/xen/include/asm-x86/hvm/vmx/vmcs.h +++ b/xen/include/asm-x86/hvm/vmx/vmcs.h @@ -118,8 +118,8 @@ struct arch_vmx_struct { unsigned int host_msr_count; struct vmx_msr_entry *host_msr_area; - uint32_t eoi_exitmap_changed; - uint64_t eoi_exit_bitmap[4]; + unsigned long eoi_exitmap_changed; + DECLARE_BITMAP(eoi_exit_bitmap, NR_VECTORS); struct pi_desc pi_desc; unsigned long host_cr0; @@ -331,13 +331,7 @@ enum vmcs_field { EPT_POINTER = 0x0000201a, EPT_POINTER_HIGH = 0x0000201b, EOI_EXIT_BITMAP0 = 0x0000201c, - EOI_EXIT_BITMAP0_HIGH = 0x0000201d, - EOI_EXIT_BITMAP1 = 0x0000201e, - EOI_EXIT_BITMAP1_HIGH = 0x0000201f, - EOI_EXIT_BITMAP2 = 0x00002020, - EOI_EXIT_BITMAP2_HIGH = 0x00002021, - EOI_EXIT_BITMAP3 = 0x00002022, - EOI_EXIT_BITMAP3_HIGH = 0x00002023, +#define EOI_EXIT_BITMAP(n) (EOI_EXIT_BITMAP0 + (n) * 2) /* n = 0...3 */ VMREAD_BITMAP = 0x00002026, VMREAD_BITMAP_HIGH = 0x00002027, VMWRITE_BITMAP = 0x00002028, |