From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Juergen Gross <jgross@suse.com>, Jan Beulich <JBeulich@suse.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
xen-devel@lists.xenproject.org,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH v8 01/21] xen/x86: add bitmap of enabled emulated devices
Date: Tue, 17 Nov 2015 10:30:27 +0000 [thread overview]
Message-ID: <564B01C3.1040909@citrix.com> (raw)
In-Reply-To: <564AFA50.9070600@suse.com>
On 17/11/15 09:58, Juergen Gross wrote:
> On 17/11/15 10:42, Jan Beulich wrote:
>>>>> On 16.11.15 at 19:33, <andrew.cooper3@citrix.com> wrote:
>>> On 16/11/15 12:18, Jan Beulich wrote:
>>>>>>> On 06.11.15 at 17:05, <roger.pau@citrix.com> wrote:
>>>>> --- a/xen/include/public/arch-x86/xen.h
>>>>> +++ b/xen/include/public/arch-x86/xen.h
>>>>> @@ -265,7 +265,31 @@ typedef struct arch_shared_info arch_shared_info_t;
>>>>> * XEN_DOMCTL_INTERFACE_VERSION.
>>>>> */
>>>>> struct xen_arch_domainconfig {
>>>>> - char dummy;
>>>>> +#define _XEN_X86_EMU_LAPIC 0
>>>>> +#define XEN_X86_EMU_LAPIC (1U<<_XEN_X86_EMU_LAPIC)
>>>>> +#define _XEN_X86_EMU_HPET 1
>>>>> +#define XEN_X86_EMU_HPET (1U<<_XEN_X86_EMU_HPET)
>>>>> +#define _XEN_X86_EMU_PM 2
>>>>> +#define XEN_X86_EMU_PM (1U<<_XEN_X86_EMU_PM)
>>>>> +#define _XEN_X86_EMU_RTC 3
>>>>> +#define XEN_X86_EMU_RTC (1U<<_XEN_X86_EMU_RTC)
>>>>> +#define _XEN_X86_EMU_IOAPIC 4
>>>>> +#define XEN_X86_EMU_IOAPIC (1U<<_XEN_X86_EMU_IOAPIC)
>>>>> +#define _XEN_X86_EMU_PIC 5
>>>>> +#define XEN_X86_EMU_PIC (1U<<_XEN_X86_EMU_PIC)
>>>>> +#define _XEN_X86_EMU_VGA 6
>>>>> +#define XEN_X86_EMU_VGA (1U<<_XEN_X86_EMU_VGA)
>>>>> +#define _XEN_X86_EMU_IOMMU 7
>>>>> +#define XEN_X86_EMU_IOMMU (1U<<_XEN_X86_EMU_IOMMU)
>>>>> +#define _XEN_X86_EMU_PIT 8
>>>>> +#define XEN_X86_EMU_PIT (1U<<_XEN_X86_EMU_PIT)
>>>> While only used for a domctl (so far), I still think we should aim at
>>>> making this a complete set (i.e. preempt future additions to the
>>>> set if at all possible). I say this because - having looked again - I'm
>>>> missing things like MTRR, PAT, and 8254 here.
>>> Use (or not) of MTRR and PAT should be controlled exclusively via the
>>> guests cpuid policy. Unlike the above bits, they are architectural
>>> components of the CPU itself, rather than external devices on the
>>> motherboard.
>> For MTRR - yes, agreed. But what CPUID bit do I not recall that allows
>> identifying PAT availability?
> INTEL SDM Vol. 3 11.12.1:
>
> An operating system or executive can detect the availability of the PAT
> by executing the CPUID instruction with a value of 1 in the EAX
> register. Support for the PAT is indicated by the PAT flag (bit 16 of
> the values returned to EDX register).
Indeed. X86_FEATURE_PAT.
~Andrew
next prev parent reply other threads:[~2015-11-17 10:30 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-06 16:05 [PATCH v8 00/21] Introduce HVM without dm and new boot ABI Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 01/21] xen/x86: add bitmap of enabled emulated devices Roger Pau Monne
2015-11-16 12:18 ` Jan Beulich
2015-11-16 18:33 ` Andrew Cooper
2015-11-17 9:42 ` Jan Beulich
2015-11-17 9:58 ` Juergen Gross
2015-11-17 10:30 ` Andrew Cooper [this message]
2015-11-17 10:35 ` Juergen Gross
2015-11-26 10:25 ` Roger Pau Monné
2015-11-06 16:05 ` [PATCH v8 02/21] xen/vlapic: fixes for HVM code when running without a vlapic Roger Pau Monne
2015-11-06 16:10 ` Andrew Cooper
2015-11-26 5:41 ` Tian, Kevin
2015-11-06 16:05 ` [PATCH v8 03/21] xen/x86: allow disabling the emulated local apic Roger Pau Monne
2015-11-26 5:47 ` Tian, Kevin
2015-11-06 16:05 ` [PATCH v8 04/21] xen/x86: allow disabling the emulated HPET Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 05/21] xen/x86: allow disabling power management Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 06/21] xen/x86: allow disabling the emulated RTC Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 07/21] xen/x86: allow disabling the emulated IO APIC Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 08/21] xen/x86: allow disabling the emulated PIC Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 09/21] xen/x86: set the vPMU interface based on the presence of a lapic Roger Pau Monne
2015-11-09 15:04 ` Jan Beulich
2015-11-10 11:30 ` [PATCH v8.1 " Roger Pau Monne
2015-11-10 14:21 ` Boris Ostrovsky
2015-11-06 16:05 ` [PATCH v8 10/21] xen/x86: allow disabling the emulated VGA Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 11/21] xen/x86: allow disabling the emulated IOMMU Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 12/21] xen/x86: allow disabling the emulated PIT Roger Pau Monne
2015-11-09 15:31 ` Jan Beulich
2015-11-06 16:05 ` [PATCH v8 13/21] xen/x86: make sure the HVM callback vector is correctly set Roger Pau Monne
2015-11-10 16:41 ` Jan Beulich
2015-11-06 16:05 ` [PATCH v8 14/21] xen/x86: allow disabling all emulated devices inside of Xen Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 15/21] elfnotes: intorduce a new PHYS_ENTRY elfnote Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 16/21] libxc: allow creating domains without emulated devices Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 17/21] xen/x86: allow HVM guests to use hypercalls to bring up vCPUs Roger Pau Monne
2015-11-12 16:57 ` Jan Beulich
2015-11-26 16:57 ` Roger Pau Monné
2015-11-27 8:00 ` Jan Beulich
2015-11-27 9:47 ` Roger Pau Monné
2015-11-27 10:03 ` Jan Beulich
2015-11-06 16:05 ` [PATCH v8 18/21] libxc/xen: introduce a start info structure for HVMlite guests Roger Pau Monne
2015-11-10 16:53 ` Jan Beulich
2015-11-06 16:05 ` [PATCH v8 19/21] libxc: switch xc_dom_elfloader to be used with HVMlite domains Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 20/21] libxl: allow the creation of HVM domains without a device model Roger Pau Monne
2015-11-06 16:05 ` [PATCH v8 21/21] libxl: add support for migrating HVM guests " Roger Pau Monne
2015-11-11 15:49 ` Wei Liu
2015-11-11 15:55 ` Ian Jackson
2015-11-11 17:14 ` Andrew Cooper
2015-11-26 18:10 ` Roger Pau Monné
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=564B01C3.1040909@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jgross@suse.com \
--cc=roger.pau@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@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.