[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v1 0/8]: PVH (PV guest with extensions)

On Wed, 2012-10-03 at 21:39 +0100, Konrad Rzeszutek Wilk wrote:
> > You Ok with XEN_ELFNOTE_GUEST_PVH, or should I call it

My intention was that you add XENFEAT_supervisor_mode_kernel et al. to
the existing XEN_ELFNOTE_FEATURES note rather than adding a whole new
note. I some how missed that this is what you were doing above. e.g.
what I meant was:

in Kconfig:
config XEN_X86_PVH
        bool "Support for running as a PVH guest (EXPERIMENTAL)"
        depends X86_64 && <..etc..> && EXPERIMENTAL
                        This option enables support for running as a PVH
                        guest (PV guest using hardware extensions) under
                        a suitably capable hypervisor.
                        This option is EXPERIMETNAL because the
                        hypervisor interfaces which it uses are not yet
                        considered stable therefore backwards and
                        forwards compatibility is not yet guaranteed.
                        If unsure, say N.

Adjust the depends to suit reality.

I thought we had that second paragraph for ARM too, but it seems like I
was wrong, we should probably add it.

then in xen-head.S (adjusted for features actually used by PVH):
#define FEATURES_PVH "XENFEAT_writable_descriptor_tables|" \
                     "XENFEAT_auto_translated_physmap|" \
                     "XENFEAT_supervisor_mode_kernel" \
#define FEATURES_PVH /* Not supported */

I don't think we need to define a XENFEAT_pvh (or whatever it might be
called) since don't need it in the code so there's no need to define/use
it here. If/when we need something like that we can add it, or
preferably some more specific thing for the use case which crops up.

> That way you can fill it with different 'features' flags
> if need to. Say 1<<1 is basic, etc.

I don't think we need a PVH specific ELF note which just replicates the
XENFEAT infrastructure at this stage, if we do come to that then it
would be better to give PVH its own leaf in the existing feature space
(e.g. starting at 1*32+0).


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.