From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 6/18 V2]: PVH xen: Introduce PVH guest type
Date: Mon, 25 Mar 2013 12:05:07 -0700 [thread overview]
Message-ID: <20130325120507.5621a913@mantra.us.oracle.com> (raw)
In-Reply-To: <5150266B02000078000C802D@nat28.tlf.novell.com>
On Mon, 25 Mar 2013 09:26:51 +0000
"Jan Beulich" <JBeulich@suse.com> wrote:
> >>> On 23.03.13 at 02:13, Mukesh Rathor <mukesh.rathor@oracle.com>
> >>> wrote:
> > On Tue, 19 Mar 2013 08:48:53 +0000
> > "Jan Beulich" <JBeulich@suse.com> wrote:
> >
> >> > suggest we leave it as is. is_hvm_or_pvh_domain is nicely
> >> > readable, what name do you suggest?
> >>
> >> No. The three kinds should be fully distinct, such that when
> >> meaning one you can use is_xyz_domain() and when meaning
> >> two, you can use !is_abc_domain().
> >
> >> is_hvm_or_pvh_domain() isn't nicely readable to me, in particular
> >> because this kind of naming doesn't scale. And it's certainly more
> >> typing than !is_pv_domain().
> >
> > Since, pvh is a pv domain, I don't like using pv_guest for non PVH
> > PV. But perhaps I could use the name pv_mmu and have something like
> > following:
> >
> > enum guest_type { is_mmu_pv, is_pvh_pv, is_hvm } guest_type;
> >
> > Then: is_hvm_or_pvh_domain() becomes: !is_mmu_pv().
> >
> > Alternative to is_mmu_pv: is_pure_pv, is_orig_pv, ....
>
> These are all ugly, and I don't see why the triplet I suggested
> (is_pv, is_pvh, and is_hvm), including their intended use, wouldn't
> be acceptable.
Because this implies pvh is a new type, whereas like I said before,
PVH is a PV guest. Ok, lets go with your suggestion above, and if
people find it confusing, we can change in future.
Thanks,
Mukesh
next prev parent reply other threads:[~2013-03-25 19:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-16 0:32 [PATCH 6/18 V2]: PVH xen: Introduce PVH guest type Mukesh Rathor
2013-03-18 11:54 ` Jan Beulich
2013-03-19 0:21 ` Mukesh Rathor
2013-03-19 8:48 ` Jan Beulich
2013-03-19 13:03 ` Konrad Rzeszutek Wilk
2013-03-19 13:41 ` Jan Beulich
2013-03-23 1:13 ` Mukesh Rathor
2013-03-25 9:26 ` Jan Beulich
2013-03-25 19:05 ` Mukesh Rathor [this message]
2013-03-25 20:07 ` Keir Fraser
2013-03-25 22:04 ` Mukesh Rathor
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=20130325120507.5621a913@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=JBeulich@suse.com \
--cc=xen-devel@lists.xen.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).