From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMCvl-00011S-KG for qemu-devel@nongnu.org; Wed, 18 Sep 2013 04:16:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMCvg-0003vv-7Z for qemu-devel@nongnu.org; Wed, 18 Sep 2013 04:16:13 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:36762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMCvf-0003vr-WF for qemu-devel@nongnu.org; Wed, 18 Sep 2013 04:16:08 -0400 Received: by mail-la0-f54.google.com with SMTP id ea20so5375226lab.13 for ; Wed, 18 Sep 2013 01:16:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <52395F88.7000203@ozlabs.ru> References: <1379478118-20448-1-git-send-email-aik@ozlabs.ru> <52395A5E.2010006@ozlabs.ru> <52395F88.7000203@ozlabs.ru> From: Peter Maydell Date: Wed, 18 Sep 2013 17:15:47 +0900 Message-ID: Content-Type: text/plain; charset=UTF-8 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: Alexey Kardashevskiy Cc: Paolo Bonzini , QEMU Developers , Alexander Graf On 18 September 2013 17:08, Alexey Kardashevskiy wrote: > On 09/18/2013 05:59 PM, Peter Maydell wrote: > It would be awesome if you just gave me any really good example of what you > expect from such a comment as kvm-all.c does not have any whatsoever. And > pci.c does not. And exec.c does not. But I am sure there is some as > it cannot possibly be me who starts making such comments in qemu. Thanks. Yes, we have a lot of preexisting undocumented functions. It's very common in QEMU for existing code not to be up to preferred standards; you can't use current code as a yardstick for "good enough to pass code review". The example I usually crib from for formatting is the extract/deposit APIs in include/qemu/bitops.h. include/exec/memory.h is also well documented. -- PMM