From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYsa9-0005pu-HM for qemu-devel@nongnu.org; Tue, 30 Sep 2014 04:14:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYsa7-0004fe-IU for qemu-devel@nongnu.org; Tue, 30 Sep 2014 04:14:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYsa7-0004cV-A0 for qemu-devel@nongnu.org; Tue, 30 Sep 2014 04:14:47 -0400 Message-ID: <542A6661.4070101@redhat.com> Date: Tue, 30 Sep 2014 10:14:25 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1411757235-29128-1-git-send-email-dslutz@verizon.com> <1411757235-29128-2-git-send-email-dslutz@verizon.com> <54291463.1080205@suse.de> <54293E24.3080205@redhat.com> <54294832.9060001@suse.de> <54294ECF.1040705@redhat.com> <54295728.5080203@suse.de> <54295B38.6020105@redhat.com> <542A01C3.70908@terremark.com> In-Reply-To: <542A01C3.70908@terremark.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Don Slutz , Alexander Graf , qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Marcel Apfelbaum , "Michael S. Tsirkin" , Markus Armbruster , Anthony Liguori , =?windows-1252?Q?Andreas_F=E4rber?= , Stefano Stabellini Il 30/09/2014 03:05, Don Slutz ha scritto: > > Basically current_cpu is NULL here, and I think that no CPU objects > have been created for Xen. So there is no VCPU object to select. CPU objects are created for Xen HVM, though not for PV. You would have to visit the list of CPUs and fill in an array in XenIOState (e.g. "X86CPU **cpu_by_ioreq_id" array in XenIOState). Then you can set current_cpu = state->cpu_by_ioreq_id[state->send_vcpu]; handle_ioreq(req); current_cpu = NULL; in cpu_handle_ioreq. Paolo From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 1/1] xen-hvm.c: Add support for Xen access to vmport Date: Tue, 30 Sep 2014 10:14:25 +0200 Message-ID: <542A6661.4070101@redhat.com> References: <1411757235-29128-1-git-send-email-dslutz@verizon.com> <1411757235-29128-2-git-send-email-dslutz@verizon.com> <54291463.1080205@suse.de> <54293E24.3080205@redhat.com> <54294832.9060001@suse.de> <54294ECF.1040705@redhat.com> <54295728.5080203@suse.de> <54295B38.6020105@redhat.com> <542A01C3.70908@terremark.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <542A01C3.70908@terremark.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Don Slutz , Alexander Graf , qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Marcel Apfelbaum , "Michael S. Tsirkin" , Markus Armbruster , Anthony Liguori , =?windows-1252?Q?Andreas_F=E4rber?= , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Il 30/09/2014 03:05, Don Slutz ha scritto: > > Basically current_cpu is NULL here, and I think that no CPU objects > have been created for Xen. So there is no VCPU object to select. CPU objects are created for Xen HVM, though not for PV. You would have to visit the list of CPUs and fill in an array in XenIOState (e.g. "X86CPU **cpu_by_ioreq_id" array in XenIOState). Then you can set current_cpu = state->cpu_by_ioreq_id[state->send_vcpu]; handle_ioreq(req); current_cpu = NULL; in cpu_handle_ioreq. Paolo