x86/pvh: disable posted interrupts

Enabling posted interrupts requires the virtual interrupt delivery feature,
which is disabled for PVH guests, so make sure posted interrupts are also
disabled or else vmlaunch will fail.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reported-and-Tested-by: Lars Eggert <lars@netapp.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
master commit: cf6b3ccf28
master date: 2015-05-28 10:56:08 +0200
This commit is contained in:
Roger Pau Monné authored and Jan Beulich committed 2015-06-18 08:47:40 +02:00
1 parent d963f64ba3
commit fbd26f2e9e
1 file changed
+4
+4
View File
@@ -930,6 +930,10 @@ static int construct_vmcs(struct vcpu *v)
| SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY);
v->arch.hvm_vmx.exec_control &= ~CPU_BASED_TPR_SHADOW;
/* In turn, disable posted interrupts. */
__vmwrite(PIN_BASED_VM_EXEC_CONTROL,
vmx_pin_based_exec_control & ~PIN_BASED_POSTED_INTERRUPT);
/* Unrestricted guest (real mode for EPT) */
v->arch.hvm_vmx.secondary_exec_control &=
~SECONDARY_EXEC_UNRESTRICTED_GUEST;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.