diff mbox series

[v2,5/5] x86/cpuid: expose EXT_DEST_ID feature if supported

Message ID 20220216103026.11533-6-roger.pau@citrix.com (mailing list archive)
State New, archived
Headers show
Series x86: extended destination ID support | expand

Commit Message

Roger Pau Monné Feb. 16, 2022, 10:30 a.m. UTC
Expose the feature if available for the domain.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Note: con not be committed ahead of the rest of the series.
---
Changes since v1:
 - New in this version (split from previous patch).
---
 xen/arch/x86/traps.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jan Beulich Feb. 18, 2022, 8:16 a.m. UTC | #1
On 16.02.2022 11:30, Roger Pau Monne wrote:
> Expose the feature if available for the domain.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>

Acked-by: Jan Beulich <jbeulich@suse.com>
diff mbox series

Patch

diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
index 485bd66971..5b24688b07 100644
--- a/xen/arch/x86/traps.c
+++ b/xen/arch/x86/traps.c
@@ -1150,6 +1150,9 @@  void cpuid_hypervisor_leaves(const struct vcpu *v, uint32_t leaf,
         res->a |= XEN_HVM_CPUID_DOMID_PRESENT;
         res->c = d->domain_id;
 
+        if ( d->arch.ext_dest_id )
+            res->a |= XEN_HVM_CPUID_EXT_DEST_ID;
+
         break;
 
     case 5: /* PV-specific parameters */