WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] 2x AMD Opteron 2356 Quad core -> DomU guest withWindows

To: "Klaus Ader" <k.ader@xxxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] 2x AMD Opteron 2356 Quad core -> DomU guest withWindows Server 2008 standart edition
From: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
Date: Mon, 8 Dec 2008 19:08:30 +0000
Cc:
Delivery-date: Mon, 08 Dec 2008 11:09:12 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=YGHiqbwiQJ49kfMYhBm29HCoebvFUoBtwe5cBPx4NGE=; b=Vs9H2eR2kOU+/BLzsZ8NH9RmBjOUvkTcrINYsa3dU8etor1X+RauNZejEtyj6RSAJP j3XmZpE4XykW57fEv8dqs5NFFj27E2Ci28QbKKHnXeVO/GRxMyGKKjkM8+GtSPf9J7aP 1vIVZvJ16Lksj+06PNdHoXeyFI3ysHlftOc/M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dGwNgBc942JjOw0Vic3sh45pD3RUWJ7kZVvtSkCIGEKMxNPCahk8/n2BHICE+Iitqg nfNThTkHtfQgjLf0899fYVe/6ORQNxhAvVrMHUHrWtahOu8mKZmfUlnauqfpDxB8cF50 gF11RabxyP9v3Qg8MDbHvVBJ3X/02yz5IR0s8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <D01C7DE211EC6543831479222C43ABFB2F794F@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <15aed8130811132313he63505aw1c93a438de7d9d9f@xxxxxxxxxxxxxx> <f4527be0811140052v61e1c1cch2e26cf5f749746e@xxxxxxxxxxxxxx> <D01C7DE211EC6543831479222C43ABFB2F794F@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, Dec 8, 2008 at 2:01 PM, Klaus Ader <k.ader@xxxxxxxxxx> wrote:
>
>> Try this:
>
>> vcpus=8
>>
> cpuid=['1:edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,ebx=xxxxxxxx00010000xxxxx
> xxxxxxxxxxx','4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx']
>
>> Andy
>
> can you (or anyone else) please give some more information about this
> topic. I have the same problem:
> 2x intel quad core L5420 CPUs
> VCPU = 8
> hvm guest shows 8 CPUs in device manager, but only 2 working cpus in
> taksmanager.
>
> regards
> bk
>
> Antivirus Uberprufung mit Kaspersky Enterprise Space
> Disclaimer: Systemhaus PC-TEAM GbR - Markus Kiupel & Klaus Ader  - USt-IdNr.: 
> DE180305967
>
>

You only see 2 working cpu's because the guest sees each assigned vcpu
as a single core chip, standard edition windows server only supports 2
sockets, hence 2 cpus.

In xmexample.hvm there are some examples of how to use cpuid= to set
the number of cores and other features:

#-----------------------------------------------------------------------------
#   Configure guest CPUID responses:
#
#cpuid=[ '1:ecx=xxxxxxxxxxx00xxxxxxxxxxxxxxxxxxx,
#           eax=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ]
# - Unset the SSE4 features (CPUID.1[ECX][20-19])
# - Default behaviour for all other bits in ECX And EAX registers.
#
# Each successive character represent a lesser-significant bit:
#  '1' -> force the corresponding bit to 1
#  '0' -> force to 0
#  'x' -> Get a safe value (pass through and mask with the default policy)
#  'k' -> pass through the host bit value
#  's' -> as 'k' but preserve across save/restore and migration
#
#   Expose to the guest multi-core cpu instead of multiple processors
# Example for intel, expose a 8-core processor :
#cpuid=['1:edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
#          ebx=xxxxxxxx00010000xxxxxxxxxxxxxxxx',
#     '4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx']
#  - CPUID.1[EDX][HT] : Enable HT
#  - CPUID.1[EBX] : Number of vcpus * 2
#  - CPUID.4,0[EAX] : Number of vcpus * 2 - 1
#vcpus=8
#
# Example for amd, expose a 5-core processor :
# cpuid = ['1:ebx=xxxxxxxx00001010xxxxxxxxxxxxxxxx,
#             edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
# '0x80000001:ecx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1x',
# '0x80000008:ecx=xxxxxxxxxxxxxxxxxxxxxxxxxx001001']
#   - CPUID.1[EBX] : Threads per Core * Cores per Socket (2 * #vcpus)
#   - CPUID.1[EDX][HT] : Enable HT
#   - CPUID.0x80000001[CmpLegacy] : Use legacy method
#   - CPUID.0x80000008[ECX] : #vcpus * 2 - 1
#vcpus=5
#
#  Downgrade the cpuid to make a better compatibility for migration :
# Look like a generic 686 :
# cpuid = [ '0:eax=0x3,ebx=0x0,ecx=0x0,edx=0x0',
#           '1:eax=0x06b1,
#              ecx=xxxxxxxxxx0000xx00xxx0000000xx0,
#              edx=xx00000xxxxxxx0xxxxxxxxx0xxxxxx',
#           '4:eax=0x3,ebx=0x0,ecx=0x0,edx=0x0',
#  '0x80000000:eax=0x3,ebx=0x0,ecx=0x0,edx=0x0']
#  with the highest leaf
#  - CPUID.0[EAX] : Set the highest leaf
#  - CPUID.1[EAX] : 686
#  - CPUID.1[ECX] : Mask some features
#  - CPUID.1[EDX] : Mask some features
#  - CPUID.4 : Reply like the highest leaf, in our case CPUID.3
#  - CPUID.0x80000000 : No extension we are on a Pentium III, reply like the
#  highest leaf (CPUID.3).
#
#   Configure host CPUID consistency checks, which must be satisfied for this
#   VM to be allowed to run on this host's processor type:
#cpuid_check=[ '1:ecx=xxxxxxxxxxxxxxxxxxxxxxxxxx1xxxxx' ]
# - Host must have VMX feature flag set
#
# The format is similar to the above for 'cpuid':
#  '1' -> the bit must be '1'
#  '0' -> the bit must be '0'
#  'x' -> we don't care (do not check)
#  's' -> the bit must be the same as on the host that started this VM

I don't find the examples particularly easy to understand, perhaps it
could be clearer, but there is an example of how to expose a 8 core
cpu to the guest, and thats what I used:

cpuid=['1:edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,ebx=xxxxxxxx00010000xxxxxxxxxxxxxxxx','4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx']

A graphical tool for configuring cpu cores and features would be
really nice, perhaps virt-manager will support it one day.

Andy

>
>
>
>

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-users] 2x AMD Opteron 2356 Quad core -> DomU guest withWindows Server 2008 standart edition, Andrew Lyon <=