All of lore.kernel.org
 help / color / mirror / Atom feed
* Changing the CPUID hypervisor string for HVM DomU
@ 2016-03-28  9:34 Fanny Dwargee
  2016-03-28 13:43 ` Boris Ostrovsky
  0 siblings, 1 reply; 2+ messages in thread
From: Fanny Dwargee @ 2016-03-28  9:34 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1407 bytes --]

Hi,

I'm currently using Xen v4.6.1 compiled from sources on Linux Debian Jessie
and I would like to change the CPUID hypervisor vendor string when queried
from a HVM DomU (Windows7 SP1 64 bits).

According to http://www.sandpile.org/x86/cpuid.htm#level_4000_0000h this
information is queried via EAX=0x40000000 and returned on EBX-ECX-EDX
registers

The current vendor string is "XenVMMXenVMM" and I want to replace it by the
string "JUSTATEST" so I changed my DomU configuration to:

[...]
cpuid = [
'0x40000000:eax=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,ebx=01010100010100110101010101001010,ecx=00000000000000000000000001010100,edx=01010011010001010101010001000001'
]

hap  = 1
acpi = 1
altp2mhvm = 1
[...]


but unfortunately the guest still shows "XenVMMXenVMM" as the hypervisor
string.

After looking for that string in the Xen sources it seems to be harcoded in
many places:

   - xen-4.6.1/docs/misc/pvrdtscp.c
   - xen-4.6.1/tools/firmware/seabios-dir-remote/src/fw/xen.c
   - xen-4.6.1/tools/firmware/hvmloader/hvmloader.c
   - xen-4.6.1/tools/misc/xen-detect.c
   - xen-4.6.1/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
   - xen-4.6.1/xen/include/public/arch-x86/cpuid.h
   - xen-4.6.1/extras/mini-os/include/xen/arch-x86/cpuid.h
   - xen-4.6.1/dist/install/usr/local/include/xen/arch-x86/cpuid.h

...so I'm afraid I will be unable to change it.

Any ideas or patches?

Thanks in advance

[-- Attachment #1.2: Type: text/html, Size: 2201 bytes --]

[-- Attachment #2: 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] 2+ messages in thread

* Re: Changing the CPUID hypervisor string for HVM DomU
  2016-03-28  9:34 Changing the CPUID hypervisor string for HVM DomU Fanny Dwargee
@ 2016-03-28 13:43 ` Boris Ostrovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Boris Ostrovsky @ 2016-03-28 13:43 UTC (permalink / raw)
  To: Fanny Dwargee, xen-devel

On 03/28/2016 05:34 AM, Fanny Dwargee wrote:
> Hi,
>
> I'm currently using Xen v4.6.1 compiled from sources on Linux Debian 
> Jessie and I would like to change the CPUID hypervisor vendor string 
> when queried from a HVM DomU (Windows7 SP1 64 bits).
>
> According to http://www.sandpile.org/x86/cpuid.htm#level_4000_0000h 
> this information is queried via EAX=0x40000000 and returned on 
> EBX-ECX-EDX registers
>
> The current vendor string is "XenVMMXenVMM" and I want to replace it 
> by the string "JUSTATEST" so I changed my DomU configuration to:
>
>     [...]
>     cpuid = [
>     '0x40000000:eax=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,ebx=01010100010100110101010101001010,ecx=00000000000000000000000001010100,edx=01010011010001010101010001000001'
>     ]
>
>     hap  = 1
>     acpi = 1
>     altp2mhvm = 1
>     [...]
>
>
> but unfortunately the guest still shows "XenVMMXenVMM" as the 
> hypervisor string.
>
> After looking for that string in the Xen sources it seems to be 
> harcoded in many places:
>
>   * xen-4.6.1/docs/misc/pvrdtscp.c
>   * xen-4.6.1/tools/firmware/seabios-dir-remote/src/fw/xen.c
>   * xen-4.6.1/tools/firmware/hvmloader/hvmloader.c
>   * xen-4.6.1/tools/misc/xen-detect.c
>   * xen-4.6.1/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
>   * xen-4.6.1/xen/include/public/arch-x86/cpuid.h
>   * xen-4.6.1/extras/mini-os/include/xen/arch-x86/cpuid.h
>   * xen-4.6.1/dist/install/usr/local/include/xen/arch-x86/cpuid.h
>
> ...so I'm afraid I will be unable to change it.
>
> Any ideas or patches?
>
> Thanks in advance


You can't change hypervisor signature (or most values in hypervisor 
leaves). See man page for xl.conf syntax ('cpuid' option) or 
libxc/xc_cpuid_x86.c:xc_cpuid_policy().

-boris

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

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

end of thread, other threads:[~2016-03-28 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-28  9:34 Changing the CPUID hypervisor string for HVM DomU Fanny Dwargee
2016-03-28 13:43 ` Boris Ostrovsky

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.