ia64/xen-unstable

changeset 17642:22f589f09da5

Add extra CPUID config examples to sample HVM config file.

From: Jean Guyader <jean.guyader@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 13 09:58:18 2008 +0100 (2008-05-13)
parents 9da75b150015
children 7211d37de25b
files tools/examples/xmexample.hvm
line diff
     1.1 --- a/tools/examples/xmexample.hvm	Tue May 13 09:48:55 2008 +0100
     1.2 +++ b/tools/examples/xmexample.hvm	Tue May 13 09:58:18 2008 +0100
     1.3 @@ -223,17 +223,54 @@ serial='pty'
     1.4  
     1.5  #-----------------------------------------------------------------------------
     1.6  #   Configure guest CPUID responses:
     1.7 -#cpuid=[ '1:ecx=xxxxxxxxxxxxxxxxxxxxxxxxxx1xxxxx,
     1.8 +#
     1.9 +#cpuid=[ '1:ecx=xxxxxxxxxxx00xxxxxxxxxxxxxxxxxxx,
    1.10  #           eax=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ]
    1.11 -# - Set the VMX feature flag in the guest (CPUID_1:ECX:5)
    1.12 +# - Unset the SSE4 features (CPUID.1[ECX][20-19])
    1.13  # - Default behaviour for all other bits in ECX And EAX registers.
    1.14  # 
    1.15  # Each successive character represent a lesser-significant bit:
    1.16  #  '1' -> force the corresponding bit to 1
    1.17  #  '0' -> force to 0
    1.18 -#  'x' -> we don't care (default behaviour)
    1.19 +#  'x' -> Get a safe value (pass through and mask with the default policy)
    1.20  #  'k' -> pass through the host bit value
    1.21  #  's' -> as 'k' but preserve across save/restore and migration
    1.22 +# 
    1.23 +#   Expose to the guest multi-core cpu instead of multiple processors
    1.24 +# Example for intel, expose a 8-core processor :
    1.25 +#cpuid=['1:edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
    1.26 +#          ebx=xxxxxxxx00010000xxxxxxxxxxxxxxxx',
    1.27 +#     '4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx']
    1.28 +#  - CPUID.1[EDX][HT] : Enable HT
    1.29 +#  - CPUID.1[EBX] : Number of vcpus * 2
    1.30 +#  - CPUID.4,0[EAX] : Number of vcpus * 2 - 1
    1.31 +#vcpus=8
    1.32 +#
    1.33 +# Example for amd, expose a 5-core processor :
    1.34 +# cpuid = ['1:ebx=xxxxxxxx00000001xxxxxxxxxxxxxxxx,
    1.35 +#             edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    1.36 +# '0x80000008:ecx=xxxxxxxxxxxxxxxx0000xxxx00001010']
    1.37 +#  - CPUID.1[EBX] : (Thread * Cores ) per processors
    1.38 +#  - CPUID.1[EDX][HT] : Enable HT
    1.39 +#  - CPUID.0x80000008[ECX] : Number of vcpus * 2
    1.40 +#vcpus=5
    1.41 +#
    1.42 +#  Downgrade the cpuid to make a better compatibility for migration :
    1.43 +# Look like a PIII :
    1.44 +# cpuid = [ '0:eax=0x3',
    1.45 +#           '1:eax=0x06b1,
    1.46 +#              ecx=xxxxxxxxxx0000xx00xxx0000000xx0,
    1.47 +#              edx=xx00000xxxxxxx0xxxxxxxxx0xxxxxx',
    1.48 +#           '4:eax=0x3,ebx=0x756e6547,ecx=0x6c65746e,edx=0x49656e69',
    1.49 +#  '0x80000000:eax=0x3,ebx=0x756e6547,ecx=0x6c65746e,edx=0x49656e69']
    1.50 +#  with the highest leaf
    1.51 +#  - CPUID.0[EAX] : Set the highest leaf
    1.52 +#  - CPUID.1[EAX] : Pentium III
    1.53 +#  - CPUID.1[ECX] : Mask some features
    1.54 +#  - CPUID.1[EDX] : Mask some features
    1.55 +#  - CPUID.4 : Reply like the highest leaf, in our case CPUID.3
    1.56 +#  - CPUID.0x80000000 : No extension we are on a Pentium III, reply like the
    1.57 +#  highest leaf (CPUID.3).
    1.58  #
    1.59  #   Configure host CPUID consistency checks, which must be satisfied for this
    1.60  #   VM to be allowed to run on this host's processor type: