From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM: add doc note about PIO/MMIO completion API Date: Wed, 17 Feb 2010 11:22:36 +0200 Message-ID: <4B7BB55C.7060001@redhat.com> References: <20100128190411.495771070@redhat.com> <4B6B1D1F.1080701@redhat.com> <20100204213643.GC2766@amt.cnet> <4B6B4031.80008@redhat.com> <20100208224119.GA6516@amt.cnet> <4B710300.7090903@redhat.com> <20100209205805.GA25144@amt.cnet> <4B7259E8.70904@redhat.com> <20100210162523.GD23089@amt.cnet> <4B72E16B.7080704@redhat.com> <20100213181025.GA4254@amt.cnet> <4B77B193.10006@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, quintela@redhat.com, Gleb Natapov , Alexander Graf To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:51755 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932420Ab0BQJWk (ORCPT ); Wed, 17 Feb 2010 04:22:40 -0500 In-Reply-To: <4B77B193.10006@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 02/14/2010 10:17 AM, Avi Kivity wrote: >> --- a/Documentation/kvm/api.txt >> +++ b/Documentation/kvm/api.txt >> @@ -820,6 +820,11 @@ executed a memory-mapped I/O instruction which >> could not be satisfied >> by kvm. The 'data' member contains the written data if 'is_write' is >> true, and should be filled by application code otherwise. >> >> +NOTE: For KVM_EXIT_IO and KVM_EXIT_MMIO, the corresponding operations >> +are complete (and guest state is consistent) only after userspace has >> +re-entered the kernel with KVM_RUN. The kernel side must first finish >> +uncomplete operations and then check for pending signals. >> + > > > Well, s/must/will/, the document is written from userspace's point of > view. > Applied with this change, thanks. -- error compiling committee.c: too many arguments to function