All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	David Vrabel <david.vrabel@citrix.com>,
	roger.pau@citrix.com
Subject: Re: A couple of HVMlite loose ends
Date: Wed, 13 Jan 2016 16:30:55 +0000	[thread overview]
Message-ID: <56967BBF.5000004@citrix.com> (raw)
In-Reply-To: <569688BF02000078000C668B@prv-mh.provo.novell.com>

On 13/01/16 16:26, Jan Beulich wrote:
>>>> On 13.01.16 at 17:17, <andrew.cooper3@citrix.com> wrote:
>> On 13/01/16 16:13, Jan Beulich wrote:
>>>>>> On 13.01.16 at 16:49, <roger.pau@citrix.com> wrote:
>>>> Hello,
>>>>
>>>> While working on a HVMlite Dom0 implementation I've found a couple of
>>>> loose ends with the design that I would like to comment because it's not
>>>> clear to me what's the best direction to take.
>>>>
>>>> 1. HVM CPUID and Dom0.
>>>>
>>>> Sadly the way CPUID is handled inside of Xen varies between PV and HVM.
>>>> On PV guests AFAICT we mostly do black-listing (I think this is the
>>>> right term), which means we pick the native CPUID result and then
>>>> perform a series of filter operations in order to remove features which
>>>> should not be exposed to a PV guest. On the other hand, for HVM guests
>>>> we pre-populate an array (d->arch.cpuids) during domain build time, and
>>>> the contents of that array is what is returned to the guest when a CPUID
>>>> instruction is executed.
>>> This d->arch.cpuids[] mechanism is common to HVM and PV; the
>>> exception really is Dom0.
>> Dom0 is not special when it comes to cpuid, and shouldn't be treated as
>> such.  My longter term CPUID plans will be fixing this.
> In some way it is - there's no need for hiding features from it, since
> it can't be migrated.

Thats perfectly fine and normal.  The same applies to all other domains
which wont migrate, or will only migrate to identical hardware.

~Andrew

  reply	other threads:[~2016-01-13 16:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-13 15:49 A couple of HVMlite loose ends Roger Pau Monné
2016-01-13 15:54 ` David Vrabel
2016-01-13 16:07   ` Roger Pau Monné
2016-01-13 16:10   ` Jan Beulich
2016-01-13 15:56 ` Juergen Gross
2016-01-13 16:01   ` Roger Pau Monné
2016-01-13 16:05     ` Juergen Gross
2016-01-13 16:13 ` Jan Beulich
2016-01-13 16:17   ` Andrew Cooper
2016-01-13 16:26     ` Jan Beulich
2016-01-13 16:30       ` Andrew Cooper [this message]
2016-01-13 17:03         ` Boris Ostrovsky
2016-01-13 17:14           ` Andrew Cooper
2016-01-13 16:14 ` Andrew Cooper

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=56967BBF.5000004@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.