mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
VMX: don't allow PVH to reach handle_mmio()
PVH guests accessing I/O ports via string ops is not supported yet. Reported-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Mukesh Rathor <mukesh.rathor@oracle.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com> Acked-by: Kevin Tian <kevin.tian@intel.com> Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
1 parent
60ce518a1b
commit
4d1308afaa
1 file changed
+2
-1
@@ -3086,7 +3086,8 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)
|
||||
if ( exit_qualification & 0x10 )
|
||||
{
|
||||
/* INS, OUTS */
|
||||
if ( !handle_mmio() )
|
||||
if ( unlikely(is_pvh_vcpu(v)) /* PVH fixme */ ||
|
||||
!handle_mmio() )
|
||||
hvm_inject_hw_exception(TRAP_gp_fault, 0);
|
||||
}
|
||||
else
|
||||
|
||||