HAP: Add hardware capability check for 2MB super page.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 07:14:54 +0000 (08:14 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 28 May 2010 07:14:54 +0000 (08:14 +0100)
commit6a47fbab768d968172e19966312b30e3d1269e73
tree73f305b7fa6dc0a3be4e03d31c9717a6821758f6
parent76a5dc5492c0385fe6f6c446512a41a2c3ba66bf
HAP: Add hardware capability check for 2MB super page.

While setting the HAP entry previously, we only check the hardware
capability for 1GB super page. This patch adds hardware capability
check for 2MB superpage

Also, Intel SDM doesn't exclude 1GB feature for 32/pae
host. Therefore remove the BUG_ON() check in common code.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/hvm/hvm.h