xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>,
	"Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>
Subject: Re: [RFC PATCH 1/8]: PVH: Basic and preparatory changes
Date: Wed, 12 Sep 2012 12:32:38 -0700	[thread overview]
Message-ID: <20120912123238.7057c51a@mantra.us.oracle.com> (raw)
In-Reply-To: <1347474380.25803.21.camel@dagon.hellion.org.uk>

On Wed, 12 Sep 2012 19:26:20 +0100
Ian Campbell <Ian.Campbell@citrix.com> wrote:

> On Wed, 2012-09-12 at 19:02 +0100, Mukesh Rathor wrote:
> > On Wed, 12 Sep 2012 09:12:25 +0100
> > Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > 
> > > On Tue, 2012-09-11 at 22:57 +0100, Mukesh Rathor wrote:
> > > > On Mon, 10 Sep 2012 14:55:52 +0100
> > > > Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > > It would likely be sufficient to just ifdef the bit which tells
> > > the builder that this kernel image supports PVH, which I guess is
> > > one or more XENFEATs in arch/x86/xen/xen-head.S?
> > > 
> > Nop, I've not added any new bits. Just using existing bits:
> > 
> > XENFEAT_writable_page_tables
> > XENFEAT_auto_translated_physmap
> > XENFEAT_supervisor_mode_kernel
> 
> Currently we declare:
>         ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz
> "!writable_page_tables|pae_pgdir_above_4gb")
> 
> It might be a mistake for writable_page_tables to be there already but
> in any case when you add the other two you should gate them on this
> new option.
> 
> (nb: "!foo" means "foo is required" rather than "not foo". I chose a
> very confusing character for this!)
> 
> It may also be worth having a XENFEAT_pvh for us in communicating
> support for this feature from the kernel to the tools (like
> XENFEAT_dom0). That's the opposite of case we wanted to avoid
> (enabling behaviour in the kernel).

Well, the way I have it is, it's the PV binary. To boot in PVH mode, you
put pvh=1 in vm.cfg file. The tool stacks read it and tell xen via
new flag XEN_DOMCTL_CDF_hybrid_guest. Err, make that _pvh_guest.
xen sets the new is_pvh bit in struct domain. The PVH guest upon boot
does xen_setup_features() first thing. xen sends it:

> XENFEAT_writable_page_tables
> XENFEAT_auto_translated_physmap
> XENFEAT_supervisor_mode_kernel
 
that with callback vector makes it a PVH guest. 

thanks,
mukesh

  parent reply	other threads:[~2012-09-12 19:32 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
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 [this message]
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=20120912123238.7057c51a@mantra.us.oracle.com \
    --to=mukesh.rathor@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Xen-devel@lists.xensource.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).