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>, ian.jackson@eu.citrix.com
Subject: Re: [xen-unstable test] 33399: regressions - FAIL
Date: Thu, 15 Jan 2015 15:06:01 +0000	[thread overview]
Message-ID: <54B7D759.1010900@citrix.com> (raw)
In-Reply-To: <54B7E264020000780005574E@mail.emea.novell.com>

On 15/01/15 14:53, Jan Beulich wrote:
>>>> On 15.01.15 at 15:14, <JBeulich@suse.com> wrote:
>> But I think I made a wrong assumption above regarding the
>> guest size: test-amd64-i386-xl-win7-amd64 produces a 64-bit
>> guest with a 32-bit tool stack, so the crucial part of all the
>> tests failing is not the guest's bitness, but tool stack's. So I'll
>> next look into which of the three feature flags might be off
>> when inspected from a 32-bit Dom0, as I now suspect that the
>> guest simply doesn't get its CPUID bits correctly set up by a
>> 32-bit Dom0 (i.e. the patch might just have uncovered a latent
>> bug).
> And there you go: The hypervisor deliberately clears the
> syscall feature flag for 32-bit PV guests on non-AMD CPUs, and
> hardware appears to do so too when CPUID gets executed from
> a non-64-bit CS (i.e. no matter whether you execute raw or
> "Xen-ified" CPUID there, you won't see that flag set). Yet 64-bit
> guests won't be bothered to check whether the flag is enabled,
> as x86-64 requires the feature to be there.

As AMD had supported syscall in 32bit systems for a long time, I presume
it is only Intel where the feature bit in cpuid changes depending on cs.L

>
> But I think even if this could be taken care of in the tool stack,
> it's better to have hvm_cpuid() mimic that behavior, i.e. force
> FEATURE_SYSCALL on when hvm_guest_x86_mode() == 8.

This seems like the least bad of the available options, but this is
going to be another level of complication for my domain cpuid changes.

~Andrew

  reply	other threads:[~2015-01-15 15:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-14 10:33 [xen-unstable test] 33399: regressions - FAIL xen.org
2015-01-14 10:52 ` Jan Beulich
2015-01-14 11:22   ` Andrew Cooper
2015-01-14 11:37     ` Jan Beulich
2015-01-14 12:07       ` Andrew Cooper
2015-01-15 14:14       ` Jan Beulich
2015-01-15 14:53         ` Jan Beulich
2015-01-15 15:06           ` Andrew Cooper [this message]
2015-01-15 15:10             ` Jan Beulich

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=54B7D759.1010900@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=ian.jackson@eu.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.