xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: keir@xen.org, eddie.dong@intel.com, jun.nakajima@intel.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 1/3] x86/hvm: Revert 80ecb40362365ba77e68fc609de8bd3b7208ae19
Date: Fri, 07 Mar 2014 09:37:58 -0500	[thread overview]
Message-ID: <5319D9C6.5070409@oracle.com> (raw)
In-Reply-To: <5319B1830200007800121DD1@nat28.tlf.novell.com>

On 03/07/2014 05:46 AM, Jan Beulich wrote:
>>>> On 06.03.14 at 19:31, Boris Ostrovsky <boris.ostrovsky@oracle.com> wrote:
>> The Solaris bug that commit 80ecb40362365ba77e68fc609de8bd3b7208ae19
>> addressed
>> has been fixed and backported to earlier releases.
> I don't think this is sufficient justification for the revert: Suppose
> someone's still running an un-patched Solaris guest (for a cloud
> provider this may even be unknowingly) and then updates the
> hypervisor (i.e. by migrating the guest to an updated host). I
> can see why you want this reverted for the subsequent patches,
> but I'm afraid a different solution will need to be found (if nothing
> else, via explicit guest config option).


I did check with our Solaris folks and we (Oracle) don't recommend 
running versions of Solaris that are susceptible to this issue (not 
because of this bug specifically but mostly because those releases are 
too old and presumably there are other problems that needed to be 
addressed).

Having said that, we could provide a way to reduce the number of leaves 
by using the 'cpuid' option in xl.conf. In fact, supporting this from 
configuration file should be a useful feature anyway.


-boris


>
> Jan
>
>> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
>> ---
>>   xen/arch/x86/traps.c |   11 ++---------
>>   1 files changed, 2 insertions(+), 9 deletions(-)
>>
>> diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
>> index c462317..d8f83a0 100644
>> --- a/xen/arch/x86/traps.c
>> +++ b/xen/arch/x86/traps.c
>> @@ -677,23 +677,16 @@ int cpuid_hypervisor_leaves( uint32_t idx, uint32_t sub_idx,
>>       struct domain *d = current->domain;
>>       /* Optionally shift out of the way of Viridian architectural leaves. */
>>       uint32_t base = is_viridian_domain(d) ? 0x40000100 : 0x40000000;
>> -    uint32_t limit;
>>   
>>       idx -= base;
>>   
>> -    /*
>> -     * Some Solaris PV drivers fail if max > base + 2. Help them out by
>> -     * hiding the PVRDTSCP leaf if PVRDTSCP is disabled.
>> -     */
>> -    limit = (d->arch.tsc_mode < TSC_MODE_PVRDTSCP) ? 2 : 3;
>> -
>> -    if ( idx > limit )
>> +    if ( idx > 3 )
>>           return 0;
>>   
>>       switch ( idx )
>>       {
>>       case 0:
>> -        *eax = base + limit; /* Largest leaf */
>> +        *eax = base + 3; /* Largest leaf */
>>           *ebx = XEN_CPUID_SIGNATURE_EBX;
>>           *ecx = XEN_CPUID_SIGNATURE_ECX;
>>           *edx = XEN_CPUID_SIGNATURE_EDX;
>> -- 
>> 1.7.1
>
>

  reply	other threads:[~2014-03-07 14:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 18:31 [PATCH 0/3] Expose HW APIC virtualization support to HVM guests Boris Ostrovsky
2014-03-06 18:31 ` [PATCH 1/3] x86/hvm: Revert 80ecb40362365ba77e68fc609de8bd3b7208ae19 Boris Ostrovsky
2014-03-07 10:46   ` Jan Beulich
2014-03-07 14:37     ` Boris Ostrovsky [this message]
2014-03-06 18:31 ` [PATCH 2/3] x86/hvm: Add HVM-specific hypervisor CPUID leaf Boris Ostrovsky
2014-03-06 18:31 ` [PATCH 3/3] x86/hvm: Indicate avaliability of HW support of APIC virtualization to HVM guests Boris Ostrovsky

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=5319D9C6.5070409@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=eddie.dong@intel.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xen.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 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).