All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Fanny Dwargee <fdwargee6@gmail.com>, xen-devel@lists.xen.org
Subject: Re: Changing the CPUID hypervisor string for HVM DomU
Date: Mon, 28 Mar 2016 09:43:57 -0400	[thread overview]
Message-ID: <56F9351D.4080705@oracle.com> (raw)
In-Reply-To: <CAOz6fc_WJRh=Fwdyzhj+8UnxoQUVgS9BkMG1feWVCSyvPEr6HA@mail.gmail.com>

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

      reply	other threads:[~2016-03-28 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-28  9:34 Changing the CPUID hypervisor string for HVM DomU Fanny Dwargee
2016-03-28 13:43 ` Boris Ostrovsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56F9351D.4080705@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=fdwargee6@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.