All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/HVM: support IOMMU-related Viridian CPUID bits
@ 2014-08-01 13:48 Jan Beulich
  2014-08-01 13:58 ` Paul Durrant
  0 siblings, 1 reply; 10+ messages in thread
From: Jan Beulich @ 2014-08-01 13:48 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper, Paul Durrant, Keir Fraser

[-- Attachment #1: Type: text/plain, Size: 884 bytes --]

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/hvm/viridian.c
+++ b/xen/arch/x86/hvm/viridian.c
@@ -50,6 +50,8 @@
 #define CPUID6A_APIC_OVERLAY    (1 << 0)
 #define CPUID6A_MSR_BITMAPS     (1 << 1)
 #define CPUID6A_NESTED_PAGING   (1 << 3)
+#define CPUID6A_DMA_REMAP       (1 << 4)
+#define CPUID6A_INTR_REMAP      (1 << 5)
 
 int cpuid_viridian_leaves(unsigned int leaf, unsigned int *eax,
                           unsigned int *ebx, unsigned int *ecx,
@@ -111,6 +113,12 @@ int cpuid_viridian_leaves(unsigned int l
             *eax |= CPUID6A_MSR_BITMAPS;
         if ( hap_enabled(d) )
             *eax |= CPUID6A_NESTED_PAGING;
+        if ( iommu_enabled )
+        {
+            *eax |= CPUID6A_DMA_REMAP;
+            if ( iommu_intremap )
+                *eax |= CPUID6A_INTR_REMAP;
+        }
         break;
     }
 




[-- Attachment #2: x86-viridian-CPUID-leaf-6-IOMMU.patch --]
[-- Type: text/plain, Size: 932 bytes --]

x86/HVM: support IOMMU-related Viridian CPUID bits

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/x86/hvm/viridian.c
+++ b/xen/arch/x86/hvm/viridian.c
@@ -50,6 +50,8 @@
 #define CPUID6A_APIC_OVERLAY    (1 << 0)
 #define CPUID6A_MSR_BITMAPS     (1 << 1)
 #define CPUID6A_NESTED_PAGING   (1 << 3)
+#define CPUID6A_DMA_REMAP       (1 << 4)
+#define CPUID6A_INTR_REMAP      (1 << 5)
 
 int cpuid_viridian_leaves(unsigned int leaf, unsigned int *eax,
                           unsigned int *ebx, unsigned int *ecx,
@@ -111,6 +113,12 @@ int cpuid_viridian_leaves(unsigned int l
             *eax |= CPUID6A_MSR_BITMAPS;
         if ( hap_enabled(d) )
             *eax |= CPUID6A_NESTED_PAGING;
+        if ( iommu_enabled )
+        {
+            *eax |= CPUID6A_DMA_REMAP;
+            if ( iommu_intremap )
+                *eax |= CPUID6A_INTR_REMAP;
+        }
         break;
     }
 

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-08-04 16:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-01 13:48 [PATCH] x86/HVM: support IOMMU-related Viridian CPUID bits Jan Beulich
2014-08-01 13:58 ` Paul Durrant
2014-08-01 14:16   ` Jan Beulich
2014-08-01 14:42     ` Paul Durrant
2014-08-01 14:57       ` Jan Beulich
2014-08-01 15:01         ` Paul Durrant
2014-08-01 15:19           ` Jan Beulich
2014-08-01 15:31             ` Paul Durrant
2014-08-04 16:30         ` George Dunlap
2014-08-04 16:51           ` Paul Durrant

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.