[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xen-cvs
Subject:    [Xen-changelog] [xen master] VMX: don't allow PVH to reach handle_mmio()
From:       patchbot () xen ! org
Date:       2014-12-15 15:33:03
Message-ID: E1Y0Xdv-0002a9-Hz () xenbits ! xen ! org
[Download RAW message or body]

Content-Length: 1428
Content-Transfer-Encoding: quoted-printable

commit 4d1308afaafa43ff68d6ecc493e36ee8f3ac9942
Author:     Jan Beulich <jbeulich@suse.com>
AuthorDate: Thu Dec 11 12:24:05 2014 +0100
Commit:     Jan Beulich <jbeulich@suse.com>
CommitDate: Thu Dec 11 12:24:05 2014 +0100

    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=C3=A9 <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=C3=A9 <roger.pau@citrix.com>
    Acked-by: Kevin Tian <kevin.tian@intel.com>
    Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 xen/arch/x86/hvm/vmx/vmx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index 0bf92b2..f2554d6 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -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
--
generated by git-patchbot for /home/xen/git/xen.git#master



_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xen.org
http://lists.xensource.com/xen-changelog

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic