xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Mukesh Rathor <mukesh.rathor@oracle.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [RFC PATCH 1/8]: PVH: Basic and preparatory changes
Date: Sat, 18 Aug 2012 09:56:54 +0100	[thread overview]
Message-ID: <1345280214.23624.20.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <20120817152617.64e2fe5e@mantra.us.oracle.com>

On Fri, 2012-08-17 at 23:26 +0100, Mukesh Rathor wrote:
> On Fri, 17 Aug 2012 15:36:04 -0400
> Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> 
> > > > For example in balloon.c we are probably only interested in memory
> > > > related behavior, so checking for XENFEAT_auto_translated_physmap
> > > > should be enough.  In other parts of the code we might want to
> > > > check for xen_pv_domain(). If xen_pv_domain() and
> > > > XENFEAT_auto_translated_physmap are not enough, we could introduce
> > > > another small XENFEAT that specifies that the domain is running
> > > > in a HVM container. This way they are all reusable.
> > > 
> > > yeah, I thought about that, but wasn't sure what the implications
> > > would be for a guest thats not PVH but has auto xlated physmap, if
> > > there's such a possibility. If you guys think thats not an issue, I
> > > can change it.
> > 
> > dom0_shadow=on on the hypervisor mode enables that in PV mode.
> 
> So, if I just add checks for auto_translated_physmap like suggested,
> wouldn't I be changing and breaking the code paths for dom0_shadow boot
> of PV guest?

Changing, but not breaking, I think. Assuming auto_translated_physmap is
used in the logically correct way.

If anything I think you'd be making dom0_shadow work better, since you
are making stuff actually work.

>  is dom0_shadow depracated?

I hadn't even heard of it until today.

> 
> Following would be true for both, pvh and dom0_shadow:
> 
> #define xen_pvh_domain() (xen_pv_domain() && \
>                           xen_feature(XENFEAT_auto_translated_physmap) && \
>                           xen_have_vector_callback)  

FWIW I don't think dom0 shadow has vector callback support.

But even if it did we could add a new XENFEAT to allow you to
distinguish if necessary. Lets wait and see what uses of xen_pvh_domain
remain once you converted the easy ones to XENFEAT_writable etc etc. The
remaining uses may show some pattern which we can use to name the new
XENFEAT something more specific than XENFEAT_pvh.

I wonder if PVH deserves a new entry in the XENVER_capabilities string?

> Also, the SIF flag allows PVH to be enabled via config file where the
> tool pareses and sets it for the guest.
> 
> At present:
>   dom0: put pvh=true at grub command line
>   domU: put pvh=1 in the vm.cfg file.

I guess these turn into something like a new XEN_DOMCTL_CDF_* which is
passed to XEN_DOMCTL_createdomain? 

Ian.

  reply	other threads:[~2012-08-18  8:56 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16  0:57 [RFC PATCH 1/8]: PVH: Basic and preparatory changes Mukesh Rathor
2012-08-16 13:59 ` Stefano Stabellini
2012-08-16 18:46   ` Mukesh Rathor
2012-08-17  8:28     ` Ian Campbell
2012-08-17 10:56       ` Stefano Stabellini
2012-08-17 13:48         ` Ian Campbell
2012-08-17 19:17         ` Mukesh Rathor
2012-08-17 10:15     ` Stefano Stabellini
2012-08-17 19:20       ` Mukesh Rathor
2012-08-17 19:36         ` Ian Campbell
2012-08-17 19:36         ` Konrad Rzeszutek Wilk
2012-08-17 22:26           ` Mukesh Rathor
2012-08-18  8:56             ` Ian Campbell [this message]
2012-08-20 11:02             ` Stefano Stabellini
2012-08-20 17:50               ` Mukesh Rathor
2012-08-17  8:35 ` Ian Campbell
2012-08-17 19:24   ` Mukesh Rathor
2012-08-17 19:47     ` Ian Campbell
2012-08-17 20:05       ` Konrad Rzeszutek Wilk
2012-08-20 23:42   ` Mukesh Rathor
2012-09-10 13:55 ` Ian Campbell
2012-09-11 21:57   ` Mukesh Rathor
2012-09-12  8:12     ` Ian Campbell
     [not found]       ` <20120912110254.10bde333@mantra.us.oracle.com>
     [not found]         ` <1347474380.25803.21.camel@dagon.hellion.org.uk>
2012-09-12 19:32           ` Mukesh Rathor
2012-09-13  6:00             ` Ian Campbell
2012-09-13 17:14               ` Mukesh Rathor
2012-09-13 17:36                 ` Pasi Kärkkäinen
2012-09-13 18:08                   ` Ian Campbell
2012-09-13 20:45                     ` Konrad Rzeszutek Wilk
2012-09-13 21:09                       ` Ian Campbell

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=1345280214.23624.20.camel@dagon.hellion.org.uk \
    --to=ian.campbell@citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=Xen-devel@lists.xensource.com \
    --cc=konrad.wilk@oracle.com \
    --cc=mukesh.rathor@oracle.com \
    /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).