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

Roger Pau Monne posted 5 patches 3 years, 11 months ago
[PATCH v2 5/5] x86/cpuid: expose EXT_DEST_ID feature if supported
Posted by Roger Pau Monne 3 years, 11 months ago
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(+)

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 */
-- 
2.34.1


Re: [PATCH v2 5/5] x86/cpuid: expose EXT_DEST_ID feature if supported
Posted by Jan Beulich 3 years, 11 months ago
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>