All of lore.kernel.org
 help / color / mirror / Atom feed
* libxl: enable/disable SVM cpuid bits
@ 2011-06-01 14:21 Christoph Egger
  2011-06-01 14:52 ` Christoph Egger
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2011-06-01 14:21 UTC (permalink / raw)
  To: xen-devel

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


Allow to enable/disable SVM cpuid bits in the guest config file.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_libxl_svm.diff --]
[-- Type: text/plain, Size: 813 bytes --]

diff -r 4d28306d6e33 tools/libxl/libxl_cpuid.c
--- a/tools/libxl/libxl_cpuid.c	Tue May 31 13:57:45 2011 +0100
+++ b/tools/libxl/libxl_cpuid.c	Wed Jun 01 16:20:24 2011 +0200
@@ -178,6 +178,11 @@ int libxl_cpuid_parse_config(libxl_cpuid
         {"procpkg",      0x00000004,  0, CPUID_REG_EAX, 26,  6},
         {"apicidsize",   0x80000008, NA, CPUID_REG_ECX, 12,  4},
         {"nc",           0x80000008, NA, CPUID_REG_ECX,  0,  8},
+        {"svm_npt",      0x8000000a, NA, CPUID_REG_EDX,  0,  1},
+        {"svm_lbrv",     0x8000000a, NA, CPUID_REG_EDX,  1,  1},
+        {"svm_nrips",    0x8000000a, NA, CPUID_REG_EDX,  2,  1},
+        {"svm_vmcbclean",0x8000000a, NA, CPUID_REG_EDX,  5,  1},
+        {"svm_pausefilt",0x8000000a, NA, CPUID_REG_EDX, 10,  1},
 
         {NULL, 0, CPUID_REG_INV, 0, 0}
     };

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

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

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

* Re: libxl: enable/disable SVM cpuid bits
  2011-06-01 14:21 libxl: enable/disable SVM cpuid bits Christoph Egger
@ 2011-06-01 14:52 ` Christoph Egger
  2011-06-02 16:37   ` Ian Jackson
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2011-06-01 14:52 UTC (permalink / raw)
  To: xen-devel

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

On 06/01/11 16:21, Christoph Egger wrote:
>
> Allow to enable/disable SVM cpuid bits in the guest config file.
>
> Signed-off-by: Christoph Egger<Christoph.Egger@amd.com>
>

Fixed oversight. nrips was wrong.

Signed-off-by: Christoph Egger<Christoph.Egger@amd.com>


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_libxl_svm.diff --]
[-- Type: text/plain, Size: 813 bytes --]

diff -r 4d28306d6e33 tools/libxl/libxl_cpuid.c
--- a/tools/libxl/libxl_cpuid.c	Tue May 31 13:57:45 2011 +0100
+++ b/tools/libxl/libxl_cpuid.c	Wed Jun 01 16:50:18 2011 +0200
@@ -178,6 +178,11 @@ int libxl_cpuid_parse_config(libxl_cpuid
         {"procpkg",      0x00000004,  0, CPUID_REG_EAX, 26,  6},
         {"apicidsize",   0x80000008, NA, CPUID_REG_ECX, 12,  4},
         {"nc",           0x80000008, NA, CPUID_REG_ECX,  0,  8},
+        {"svm_npt",      0x8000000a, NA, CPUID_REG_EDX,  0,  1},
+        {"svm_lbrv",     0x8000000a, NA, CPUID_REG_EDX,  1,  1},
+        {"svm_nrips",    0x8000000a, NA, CPUID_REG_EDX,  3,  1},
+        {"svm_vmcbclean",0x8000000a, NA, CPUID_REG_EDX,  5,  1},
+        {"svm_pausefilt",0x8000000a, NA, CPUID_REG_EDX, 10,  1},
 
         {NULL, 0, CPUID_REG_INV, 0, 0}
     };

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

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

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

* Re: libxl: enable/disable SVM cpuid bits
  2011-06-01 14:52 ` Christoph Egger
@ 2011-06-02 16:37   ` Ian Jackson
  2011-06-02 19:22     ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2011-06-02 16:37 UTC (permalink / raw)
  To: Christoph Egger; +Cc: xen-devel

Christoph Egger writes ("Re: [Xen-devel] libxl: enable/disable SVM cpuid bits"):
> On 06/01/11 16:21, Christoph Egger wrote:
> > Allow to enable/disable SVM cpuid bits in the guest config file.
> >
> > Signed-off-by: Christoph Egger<Christoph.Egger@amd.com>
> >
> 
> Fixed oversight. nrips was wrong.
> 
> Signed-off-by: Christoph Egger<Christoph.Egger@amd.com>

Does anyone else have any comments on this or shall I just apply it ?

Ian.

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

* Re: libxl: enable/disable SVM cpuid bits
  2011-06-02 16:37   ` Ian Jackson
@ 2011-06-02 19:22     ` Keir Fraser
  0 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2011-06-02 19:22 UTC (permalink / raw)
  To: Ian Jackson, Christoph Egger; +Cc: xen-devel

On 02/06/2011 17:37, "Ian Jackson" <Ian.Jackson@eu.citrix.com> wrote:

> Christoph Egger writes ("Re: [Xen-devel] libxl: enable/disable SVM cpuid
> bits"):
>> On 06/01/11 16:21, Christoph Egger wrote:
>>> Allow to enable/disable SVM cpuid bits in the guest config file.
>>> 
>>> Signed-off-by: Christoph Egger<Christoph.Egger@amd.com>
>>> 
>> 
>> Fixed oversight. nrips was wrong.
>> 
>> Signed-off-by: Christoph Egger<Christoph.Egger@amd.com>
> 
> Does anyone else have any comments on this or shall I just apply it ?

I haven't checked the actual bit mappings are correct, but the principle is
fine and the patch should go in.

 -- Keir

> Ian.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2011-06-02 19:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 14:21 libxl: enable/disable SVM cpuid bits Christoph Egger
2011-06-01 14:52 ` Christoph Egger
2011-06-02 16:37   ` Ian Jackson
2011-06-02 19:22     ` Keir Fraser

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.