From: Hollis Blanchard Subject: Re: [kvm-devel] [PATCH 01/15] KVM: Use a shared page for kernel/user communication when runing a vcpu Date: Wed, 14 Mar 2007 22:09:23 -0500 Message-ID: <1173928163.4611.13.camel@diesel> References: <11736212072915-git-send-email-avi@qumranet.com> <1173621207773-git-send-email-avi@qumranet.com> <1173926306.4611.6.camel@diesel> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, Andrew Morton , linux-kernel@vger.kernel.org To: Avi Kivity Return-path: In-Reply-To: <1173926306.4611.6.camel@diesel> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, 2007-03-14 at 21:38 -0500, Hollis Blanchard wrote: > On Sun, 2007-03-11 at 15:53 +0200, Avi Kivity wrote: > > Instead of passing a 'struct kvm_run' back and forth between the > > kernel and userspace, allocate a page and allow the user to mmap() it. > > This reduces needless copying and makes the interface expandable by > > providing lots of free space. > > Do you provide for another means of accessing guest memory from host > userspace? For example, how do you attach a host debugger to the guest? > > Xen uses an ioctl followed by mmap for this purpose, which is why I > wonder about using mmap(/dev/kvm) for another purpose. Never mind: I see now that you have separate device nodes for the VM vs each vcpu. -Hollis