From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH for-4.5 v6 00/16] Xen VMware tools support Date: Tue, 23 Sep 2014 13:35:27 +0100 Message-ID: References: <1411236447-7435-1-git-send-email-dslutz@verizon.com> <1411394209.18331.113.camel@kazak.uk.xensource.com> <54203DE9.9040307@eu.citrix.com> <1411400048.26552.10.camel@kazak.uk.xensource.com> <54204280.2030408@eu.citrix.com> <1411401014.26552.15.camel@kazak.uk.xensource.com> <54204657.5080906@eu.citrix.com> <54205A1D.90700@terremark.com> <1411475416.1781.15.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411475416.1781.15.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Kevin Tian , Keir Fraser , Jun Nakajima , Stefano Stabellini , Ian Jackson , Eddie Dong , Don Slutz , Tim Deegan , Aravind Gopalakrishnan , Jan Beulich , Andrew Cooper , Boris Ostrovsky , "xen-devel@lists.xen.org" , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org On Tue, Sep 23, 2014 at 1:30 PM, Ian Campbell wrote: > On Mon, 2014-09-22 at 13:19 -0400, Don Slutz wrote: >> >> It sounds plausible, for sure. >> >> >> >> Even so, why can't the result of that #GP be a calldown into qemu for >> >> further processing? >> > >> >> This is not simple in that QEMU does not have access to the VCPU >> registers. Unlike a normal >> I/O request, vmware_port (aka vmport) both reads and writes VCPU registers. > > Are you saying that emulating a normal in or out instruction doesn't > require accessing vcpu registers? Are you sure? Surely it needs to > either read the source or write the destination register somehow. At the moment Xen does all of the decoding of instructions; what it sends to qemu is just "Read / Write X bytes at address Y" (along with data when appropriate). Qemu doesn't require access to the registers. -George