From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMCTQ-0008F3-Ls for qemu-devel@nongnu.org; Wed, 18 Sep 2013 03:47:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMCTH-0002z2-08 for qemu-devel@nongnu.org; Wed, 18 Sep 2013 03:46:56 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:33974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMCTG-0002yj-Nh for qemu-devel@nongnu.org; Wed, 18 Sep 2013 03:46:46 -0400 Received: by mail-pd0-f179.google.com with SMTP id v10so6670160pde.38 for ; Wed, 18 Sep 2013 00:46:45 -0700 (PDT) Message-ID: <52395A5E.2010006@ozlabs.ru> Date: Wed, 18 Sep 2013 17:46:38 +1000 From: Alexey Kardashevskiy MIME-Version: 1.0 References: <1379478118-20448-1-git-send-email-aik@ozlabs.ru> In-Reply-To: Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] kvm: add set_one_reg/get_one_reg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , QEMU Developers , Alexander Graf On 09/18/2013 05:14 PM, Peter Maydell wrote: > On 18 September 2013 05:21, Alexey Kardashevskiy wrote: >> This adds QEMU wrappers for KVM_SET_ONE_REG/KVM_GET_ONE_REG ioctls. >> >> Signed-off-by: Alexey Kardashevskiy >> --- >> include/sysemu/kvm.h | 4 ++++ >> kvm-all.c | 31 +++++++++++++++++++++++++++++++ >> 2 files changed, 35 insertions(+) >> >> diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h >> index c7bc07b..b2d61e9 100644 >> --- a/include/sysemu/kvm.h >> +++ b/include/sysemu/kvm.h >> @@ -319,4 +319,8 @@ int kvm_irqchip_remove_irqfd_notifier(KVMState *s, EventNotifier *n, int virq); >> void kvm_pc_gsi_handler(void *opaque, int n, int level); >> void kvm_pc_setup_irq_routing(bool pci_enabled); >> void kvm_init_irq_routing(KVMState *s); >> + >> +int kvm_set_one_reg(CPUState *cs, uint64_t id, void *addr); >> +int kvm_get_one_reg(CPUState *cs, uint64_t id, void *addr); > > Doc comments, please. What comments? Do not the function names speak for themselves already? -- Alexey