From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Guest to host communication in kvm Date: Thu, 09 Jun 2011 11:17:33 +0300 Message-ID: <4DF0819D.5050704@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Vaibhav Nipunage Return-path: Received: from mx1.redhat.com ([209.132.183.28]:61056 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753637Ab1FIIRh (ORCPT ); Thu, 9 Jun 2011 04:17:37 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 06/08/2011 06:27 AM, Vaibhav Nipunage wrote: > Hello, > > I am trying to understand the kvm code. I am writing simple code in > which I want to send some message or notification from the guest to > host (qemu-kvm). > > I thought of implementing some hypercalls in which, on some condition > this hypercall will get called and it get handled in qemu-kvm. But I > didn't understand how to handle this in qemu-kvm. > > Or is there any other better way to do this? Look at cpu_register_io_memory() cpu_register_physical_memory() or ioport_register() -- error compiling committee.c: too many arguments to function