From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hollis Blanchard Subject: Re: [PATCH 01/15] KVM: Use a shared page for kernel/user communication when runing a vcpu Date: Wed, 14 Mar 2007 21:38:26 -0500 Message-ID: <1173926306.4611.6.camel@diesel> References: <11736212072915-git-send-email-avi@qumranet.com> <1173621207773-git-send-email-avi@qumranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Andrew Morton , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Avi Kivity Return-path: In-Reply-To: <1173621207773-git-send-email-avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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. -Hollis ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV