qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: gleb@redhat.com, kvm@vger.kernel.org, mtosatti@redhat.com,
	qemu-devel@nongnu.org, Blue Swirl <blauwirbel@gmail.com>,
	Jan Kiszka <jan.kiszka@web.de>,
	avi@redhat.com, Anthony Liguori <anthony@codemonkey.ws>
Subject: Re: [Qemu-devel] [PATCHv2 3/4] cpuid: disable pv eoi for 1.1 and older compat types
Date: Tue, 28 Aug 2012 21:02:05 +0400 (MSK)	[thread overview]
Message-ID: <alpine.LNX.2.00.1208282054320.3009@linmac> (raw)
In-Reply-To: <20120828154626.GD2903@redhat.com>

On Tue, 28 Aug 2012, Michael S. Tsirkin wrote:

> On Mon, Aug 27, 2012 at 07:40:56PM +0000, Blue Swirl wrote:
> > On Mon, Aug 27, 2012 at 7:24 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> > > On Mon, Aug 27, 2012 at 07:12:27PM +0000, Blue Swirl wrote:
> > >> On Mon, Aug 27, 2012 at 7:06 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> > >> > On Mon, Aug 27, 2012 at 06:58:29PM +0000, Blue Swirl wrote:
> > >> >> On Mon, Aug 27, 2012 at 12:20 PM, Michael S. Tsirkin <mst@redhat.com> wrote:
> > >> >> > In preparation for adding PV EOI support, disable PV EOI by default for
> > >> >> > 1.1 and older machine types, to avoid CPUID changing during migration.
> > >> >> >
> > >> >> > PV EOI can still be enabled/disabled by specifying it explicitly.
> > >> >> >     Enable for 1.1
> > >> >> >     -M pc-1.1 -cpu kvm64,+kvm_pv_eoi
> > >> >> >     Disable for 1.2
> > >> >> >     -M pc-1.2 -cpu kvm64,-kvm_pv_eoi
> > >> >> >
> > >> >> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > >> >> > ---
> > >> >> >  hw/Makefile.objs  |  2 +-
> > >> >> >  hw/cpu_flags.c    | 32 ++++++++++++++++++++++++++++++++
> > >> >> >  hw/cpu_flags.h    |  9 +++++++++
> > >> >> >  hw/pc_piix.c      |  2 ++

[..snip..]

> > 
> > No leading underscores. They are not used in QEMU.
> 
> They are *widely* used in QEMU to mark internal
> stuff. E.g. parameters in many macros.
> 

ISO/IEC 9899:TC3 7.1.3#1

- All identifiers that begin with an underscore and either an
  uppercase letter or another underscore are always reserved for any use.

IOW no __ or _[A-Z] at all.

- All identifiers that begin with an underscore are always reserved
  for use as identifiers with file scope in both the ordinary and tag
  name spaces.

IOW _ as the name of an argument to a macro is (probably) okay.

> In reality __ is also widely used. I'm still mulling
> removing 2.4 from HACKING - it appears too draconian,
> the chances of a conflict with preprocessor are remote
> and if it triggers, it's trivial to catch.
> We also have lots of existing code violating this rule.
> 
> And the rule about _t suffix is just silly.

http://pubs.opengroup.org/onlinepubs/7908799/xns/namespace.html

[..snip..]

-- 
mailto:av1474@comtv.ru

  reply	other threads:[~2012-08-28 17:02 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 12:20 [Qemu-devel] [PATCHv2 0/4] migrate PV EOI MSR Michael S. Tsirkin
2012-08-27 12:20 ` [Qemu-devel] [PATCHv2 1/4] linux-headers: update to 3.6-rc3 Michael S. Tsirkin
2012-08-27 12:42   ` Peter Maydell
2012-08-27 12:48     ` Jan Kiszka
2012-08-27 14:53       ` Michael S. Tsirkin
2012-08-27 14:59         ` Jan Kiszka
2012-08-27 18:48           ` Michael S. Tsirkin
2012-08-27 14:50     ` Michael S. Tsirkin
2012-08-27 12:20 ` [Qemu-devel] [PATCHv2 2/4] pc: refactor compat code Michael S. Tsirkin
2012-08-28 16:23   ` Marcelo Tosatti
2012-08-28 16:31     ` Michael S. Tsirkin
2012-08-28 16:37       ` Marcelo Tosatti
2012-08-28 21:29         ` Michael S. Tsirkin
2012-08-27 12:20 ` [Qemu-devel] [PATCHv2 3/4] cpuid: disable pv eoi for 1.1 and older compat types Michael S. Tsirkin
2012-08-27 18:58   ` Blue Swirl
2012-08-27 19:06     ` Michael S. Tsirkin
2012-08-27 19:12       ` Blue Swirl
2012-08-27 19:24         ` Michael S. Tsirkin
2012-08-27 19:40           ` Blue Swirl
2012-08-28 15:46             ` Michael S. Tsirkin
2012-08-28 17:02               ` malc [this message]
2012-08-28 21:50                 ` Michael S. Tsirkin
2012-08-28 19:13   ` Anthony Liguori
2012-08-28 19:40     ` Eduardo Habkost
2012-08-28 21:41       ` Michael S. Tsirkin
2012-08-28 21:40     ` Michael S. Tsirkin
2012-08-27 12:20 ` [Qemu-devel] [PATCHv2 4/4] kvm: get/set PV EOI MSR Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.1208282054320.3009@linmac \
    --to=av1474@comtv.ru \
    --cc=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=gleb@redhat.com \
    --cc=jan.kiszka@web.de \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).