From: Roger Pau Monne <roger.pau@citrix.com>
To: <xen-devel@lists.xenproject.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>, Wei Liu <wl@xen.org>,
Jan Beulich <jbeulich@suse.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: [Xen-devel] [PATCH] x86/hvm: always expose x2APIC feature in max HVM cpuid policy
Date: Tue, 24 Dec 2019 11:18:10 +0100 [thread overview]
Message-ID: <20191224101810.45915-1-roger.pau@citrix.com> (raw)
On hardware without x2APIC support Xen emulated local APIC will
provide such mode, and hence the feature should be set in the maximum
HVM cpuid policy.
Not exposing it in the maximum policy results in HVM domains not
getting such feature exposed unless it's also supported by the
underlying hardware.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
This is a regression, but I'm not able to identify the commit that
introduced the bogus behavior.
---
xen/arch/x86/cpuid.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/cpuid.c b/xen/arch/x86/cpuid.c
index 7055509ed6..b1ed33d524 100644
--- a/xen/arch/x86/cpuid.c
+++ b/xen/arch/x86/cpuid.c
@@ -396,10 +396,11 @@ static void __init calculate_hvm_max_policy(void)
hvm_featureset[i] &= hvm_featuremask[i];
/*
- * Xen can provide an APIC emulation to HVM guests even if the host's APIC
- * isn't enabled.
+ * Xen can provide an (x2)APIC emulation to HVM guests even if the host's
+ * (x2)APIC isn't enabled.
*/
__set_bit(X86_FEATURE_APIC, hvm_featureset);
+ __set_bit(X86_FEATURE_X2APIC, hvm_featureset);
/*
* On AMD, PV guests are entirely unable to use SYSENTER as Xen runs in
--
2.24.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next reply other threads:[~2019-12-24 10:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-24 10:18 Roger Pau Monne [this message]
2019-12-24 12:23 ` [Xen-devel] [PATCH] x86/hvm: always expose x2APIC feature in max HVM cpuid policy Andrew Cooper
2019-12-24 12:42 ` Roger Pau Monné
2019-12-24 16:00 ` Andrew Cooper
2019-12-24 18:17 ` Roger Pau Monné
2020-01-09 10:48 ` 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=20191224101810.45915-1-roger.pau@citrix.com \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=wl@xen.org \
--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.