From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Hajnoczi Subject: Re: Mapping guest memory from another process? Date: Mon, 9 Sep 2013 11:33:44 +0200 Message-ID: <20130909093344.GD16629@stefanha-thinkpad.redhat.com> References: <20130904084746.GA9654@stefanha-thinkpad.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Cutter 409 Return-path: Received: from mail-ee0-f41.google.com ([74.125.83.41]:56650 "EHLO mail-ee0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751073Ab3IIJds (ORCPT ); Mon, 9 Sep 2013 05:33:48 -0400 Received: by mail-ee0-f41.google.com with SMTP id d17so3032256eek.0 for ; Mon, 09 Sep 2013 02:33:47 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Sep 04, 2013 at 10:35:56AM -0400, Cutter 409 wrote: > Thanks, I'll try that. Do you know of any way to get at the VCPU structure > from another process? I'm looking to have an event triggered from the guest > which will notify my application. In Xen I use an event channel, and then I > can call a function to retrieve the relevant VCPU context. At this point it might be worthwhile to describe what you're trying to achieve. I can think of two ways to get vcpu state from a third process: QMP monitor or kvm.ko file descriptors. (Ignoring the possibility of using the gdbstub.) But the cleanest and best way depends on what exactly you are trying to do. Stefan