From: Boris Derzhavets Subject: Re: [PATCH] xen: mask XSAVE in cpuid since we don't allow guests to use it Date: Mon, 9 Mar 2009 07:31:20 -0700 (PDT) Message-ID: <647590.20396.qm@web56102.mail.re3.yahoo.com> References: Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1887866075==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org --===============1887866075== Content-Type: multipart/alternative; boundary="0-1135927939-1236609080=:20396" --0-1135927939-1236609080=:20396 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Just cloned,built and installed the most recent xen-unstable. Seems like "make tools"=A0 reports some errors , but still finishes=A0 with= no error message. CentOS 5.2 PV DomU may be loaded OK only the very first time. The next attempt after DomU shutdown brings it to paused state. After "xm unpause DomainName":- i8042.c: No controller found. in=A0 1 seconds Red Hat nash version 5.1.19.6 starting =A0 Reading all physical volumes.=A0 This may take a while... =A0 No volume groups found =A0 Volume group "VolGroup00" not found mount: could not find filesystem '/dev/root' setuproot: moving /dev failed: No such file or directory setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory switchroot: mount failed: No such file or directory Kernel panic - not syncing: Attempted to kill init! =A0root@ServerUbuntu810:/home/boris/vm# Error: Device 51712 (vbd) could not= be connected. Hotplug scripts not working. /var/log/xen/xend.log:- [2009-03-09 10:18:33 6335] DEBUG (XendDomainInfo:2131) No device model [2009-03-09 10:18:33 6335] DEBUG (XendDomainInfo:2133) Releasing devices [2009-03-09 10:19:29 6335] DEBUG (DevController:629) hotplugStatusCallback = /local/domain/0/backend/vbd/2/51712/hotplug-status. [2009-03-09 10:19:29 6335] DEBUG (DevController:643) hotplugStatusCallback = 1. [2009-03-09 10:19:42 6335] ERROR (XendDomainInfo:1983) Failed to restart do= main 2. Traceback (most recent call last): =A0 File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1969, in _re= start =A0=A0=A0 new_dom.waitForDevices() =A0 File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 1020, in wai= tForDevices =A0=A0=A0 self.getDeviceController(devclass).waitForDevices() =A0 File "//usr/lib64/python/xen/xend/server/DevController.py", line 140, i= n waitForDevices =A0=A0=A0 return map(self.waitForDevice, self.deviceIDs()) =A0 File "//usr/lib64/python/xen/xend/server/DevController.py", line 152, i= n waitForDevice =A0=A0=A0 self.destroyDevice(devid, False) =A0 File "//usr/lib64/python/xen/xend/server/blkif.py", line 200, in destro= yDevice =A0=A0=A0 DevController.destroyDevice(self, devid, force) =A0 File "//usr/lib64/python/xen/xend/server/DevController.py", line 228, i= n destroyDevice =A0=A0=A0 self.writeBackend(dev, 'online', "0") =A0 File "//usr/lib64/python/xen/xend/server/DevController.py", line 474, i= n writeBackend =A0=A0=A0 raise VmError("Device %s not connected" % devid) VmError: Device 51712 not connected [2009-03-09 10:21:06 6335] DEBUG (DevController:629) hotplugStatusCallback = /local/domain/0/backend/vbd/3/51712/hotplug-status. [2009-03-09 10:21:06 6335] DEBUG (DevController:643) hotplugStatusCallback = 2. Start F10 PV DomU:- root@ServerUbuntu810:/home/boris/vm# xm create -c f10.pyrun Using config file "./f10.pyrun". PCI: Fatal: No config space access function found IO APIC resources could be not be allocated. Loading /lib/kbd/keymaps/i386/qwerty/us.map BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 IP: [] backend_changed+0x2d5/0x3af [xen_blkfront] PGD 7d1f6067 PUD 7d143067 PMD 7d116067 PTE 0 Oops: 0000 [1] SMP=20 CPU 1=20 Modules linked in: xen_blkfront Pid: 19, comm: xenwatch Not tainted 2.6.27.5-117.fc10.x86_64 #1 RIP: e030:[]=A0 [] backend_changed+0x2d= 5/0x3af [xen_blkfront] RSP: e02b:ffff88007f40fdf0=A0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff88007d02d840 RCX: 0000000000000000 RDX: ffff88007f40fe28 RSI: 0000000000000005 RDI: ffff88007ff5f400 RBP: ffff88007f40fe80 R08: ffff88007f40fdd0 R09: ffff88007f40fcc0 R10: 0000000000000001 R11: ffff880000000018 R12: ffff88007ff5f400 R13: ffff88007d042000 R14: 000000000000000a R15: ffffffff817e2f44 FS:=A0 00007fb68f67e6f0(0000) GS:ffff88007fc04880(0000) knlGS:0000000000000= 000 CS:=A0 e033 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 0000000000000000 CR3: 000000007d105000 CR4: 0000000000002660 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process xenwatch (pid: 19, threadinfo ffff88007f40e000, task ffff88007ffd5c= 40) Stack:=A0 ffff88007f40fe00 ffff88007f40fe40 ffffffff816de500 ffffffff816de5= 00 =A0ffffffff81455f53 ffffffff81462b99 ffff88007f40fe7c 0000000000000000 =A0000000000000000a ffff88007d02d840 ffff88007ff5f400 ffffffffa0002ac0 Call Trace: =A0[] otherend_changed+0x81/0x8a =A0[] xenwatch_thread+0x101/0x134 =A0[] ? autoremove_wake_function+0x0/0x38 =A0[] ? xenwatch_thread+0x0/0x134 =A0[] kthread+0x49/0x76 =A0[] child_rip+0xa/0x11 =A0[] ? restore_args+0x0/0x30 =A0[] ? child_rip+0x0/0x11 Code: 58 08 e9 97 00 00 00 49 8b 7d 00 48 c7 c2 b9 15 00 a0 be ed ff ff ff = 48 8b 4f 10 31 c0 e8 da 5f 1c e1 e9 cf 00 00 00 49 8b 45 08 <8b> 38 c1 e7 1= 4 0b 78 04 e8 26 55 0e e1 48 85 c0 48 89 c3 75 16=20 RIP=A0 [] backend_changed+0x2d5/0x3af [xen_blkfront] =A0RSP CR2: 0000000000000000 ---[ end trace bf88f6e1c7a703d2 ]--- root@ServerUbuntu810:/home/boris/vm# Error: Device 51712 (vbd) could not be= connected. Hotplug scripts not working. --- On Mon, 3/9/09, Keir Fraser wrote: From: Keir Fraser Subject: Re: [PATCH] xen: mask XSAVE in cpuid since we don't allow guests t= o use it To: "bderzhavets@yahoo.com" Cc: "Xen-devel" Date: Monday, March 9, 2009, 7:26 AM If you=B9re using a recent xen-unstable then you might try again with the current tip. A couple of changes went in recently (including one fix today)= . -- Keir On 09/03/2009 11:18, "Boris Derzhavets" wrote: > I was able to go through creating PV DomUs images via corresponding pygrub's > profiles for F10,CentOS 5.2,SNV_106 (64-bit all). > However, only Solaris Nevada PV DomU gets loaded via standard > pygrub profile.=20 >=20 > Attempt to load F10 PV:- >=20 > [2009-03-09 05:33:38 6351] DEBUG (XendDomainInfo:92) > XendDomainInfo.create(['vm', ['name', 'F10PV'], ['memory', 2048], > ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 1], > ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['bootloader', > '/usr/bin/pygrub'], ['bootloader_args', '-q'], ['image', ['linux', > ['videoram', 4]]], ['device', ['vbd', ['uname', 'phy:/dev/sdb5'], ['dev', > 'xvda'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'eth0']]], ['device', > ['vkbd']], ['device', ['vfb', ['vncunused', '1'], ['type', 'vnc'], > ['xauthority', '/root/.Xauthority']]]]) > [2009-03-09 05:33:38 6351] DEBUG (XendDomainInfo:2183) > XendDomainInfo.constructDomain > [2009-03-09 05:33:38 6351] DEBUG (balloon:166) Balloon: 7239368 KiB free; need > 2048; done. > [2009-03-09 05:33:38 6351] DEBUG (XendDomain:452) Adding Domain: 8 > [2009-03-09 05:33:38 6351] DEBUG (XendDomainInfo:2362) > XendDomainInfo.initDomain: 8 256 > [2009-03-09 05:33:38 12975] DEBUG (XendBootloader:113) Launching bootloader as > ['/usr/bin/pygrub', '--output=3D/var/run/xend/boot/xenbl.29001', '-q', > '/dev/sdb5']. > [2009-03-09 05:33:39 6351] ERROR (XendBootloader:213) Boot loader didn't > return any data! > [2009-03-09 05:33:39 6351] ERROR (XendDomainInfo:472) VM start failed > Traceback (most recent call last): > File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 452, in start > XendTask.log_progress(31, 60, self._initDomain) > File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress > retval =3D func(*args, **kwds) > File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2364, in > _initDomain > self._configureBootloader() > File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2765, in > _configureBootloader > bootloader_args, kernel, ramdisk, args) > File "//usr/lib64/python/xen/xend/XendBootloader.py", line 214, in > bootloader > raise VmError, msg >=20 > Attempt to load CentOS 5.2 PV:- >=20 > [2009-03-09 06:45:39 6351] DEBUG (XendDomainInfo:92) > XendDomainInfo.create(['vm', ['name', 'RHEL52PV'], ['memory', 2048], ['vcpus', > 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', > ['linux', ['videoram', 4]]], ['device', ['vbd', ['uname', 'phy:/dev/sdb5'], > ['dev', 'xvda'], ['mode', 'w']]], ['device', ['vif', ['bridge', 'eth0']]]]) > [2009-03-09 06:45:39 6351] DEBUG (XendDomainInfo:2183) > XendDomainInfo.constructDomain > [2009-03-09 06:45:39 6351] DEBUG (balloon:166) Balloon: 7239368 KiB free; need > 2048; done. > [2009-03-09 06:45:39 6351] DEBUG (XendDomain:452) Adding Domain: 12 > [2009-03-09 06:45:39 6351] DEBUG (XendDomainInfo:2362) > XendDomainInfo.initDomain: 12 256 > [2009-03-09 06:45:39 16739] DEBUG (XendBootloader:113) Launching bootloader as > ['/usr/bin/pygrub', '--output=3D/var/run/xend/boot/xenbl.15023', '/dev/sdb5']. > [2009-03-09 06:45:44 6351] ERROR (XendBootloader:213) Boot loader didn't > return any data! > [2009-03-09 06:45:44 6351] ERROR (XendDomainInfo:472) VM start failed > Traceback (most recent call last): > File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 452, in start > XendTask.log_progress(31, 60, self._initDomain) > File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in log_progress > retval =3D func(*args, **kwds) > File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2364, in > _initDomain > self._configureBootloader() > File "//usr/lib64/python/xen/xend/XendDomainInfo.py", line 2765, in > _configureBootloader > bootloader_args, kernel, ramdisk, args) > File "//usr/lib64/python/xen/xend/XendBootloader.py", line 214, in > bootloader > raise VmError, msg > VmError: Boot loader didn't return any data! >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --- On Sun, 3/8/09, Jeremy Fitzhardinge wrote: >> From: Jeremy Fitzhardinge >> Subject: [PATCH] xen: mask XSAVE in cpuid since we don't allow guests to use >> it >> To: "Keir Fraser" >> Cc: "Xen-devel" , "Marc - A. Dahlhaus [ >> Administration | Westermann GmbH ]" , "Boris Derzhavets" >> >> Date: Sunday, March 8, 2009, 12:31 AM >>=20 >> Mask X86_FEATURE_XSAVE in cpuid leaf 1, ecx, as we don't allow guests to >> use it (by setting cr4.OSXSAVE). >>=20 >> This prevents crashes in pvops dom0 kernels, as new versions of Linux try >> to use this feature. >>=20 >> (This patch deals with dom0 cpuid; I'm not sure where the right place to >> set up the default mask for domU is.) >>=20 >> Signed-off-by: Jeremy Fitzhardinge >>=20 >> diff -r 7f573cb76db4 xen/arch/x86/traps.c >> --- a/xen/arch/x86/traps.c Tue Mar 03 13:22:28 2009 +0000 >> +++ b/xen/arch/x86/traps.c Sat Mar 07 17:02:03 2009 -0800 >> @@ -757,6 +757,7 @@ >> __clear_bit(X86_FEATURE_XTPR % 32, &c); >> __clear_bit(X86_FEATURE_PDCM % 32, &c); >> __clear_bit(X86_FEATURE_DCA % 32, &c); >> + __clear_bit(X86_FEATURE_XSAVE % 32, &c); >> if ( !cpu_has_apic ) >> =20 >> __clear_bit(X86_FEATURE_X2APIC % 32, &c); >> __set_bit(X86_FEATURE_HYPERVISOR % 32, &c); >> diff -r 7f573cb76db4 xen/include/asm-x86/cpufeature.h >> --- a/xen/include/asm-x86/cpufeature.h Tue Mar 03 13:22:28 2009 +0000 >> +++ b/xen/include/asm-x86/cpufeature.h Sat Mar 07 17:02:03 2009 -0800 >> @@ -95,6 +95,7 @@ >> #define X86_FEATURE_SSE4_2 (4*32+20) /* Streaming SIMD Extensions 4.2 */ >> #define X86_FEATURE_X2APIC (4*32+21) /* Extended xAPIC */ >> #define X86_FEATURE_POPCNT (4*32+23) /* POPCNT instruction */ >> +#define X86_FEATURE_XSAVE (4*32+26) /* XSAVE/XRSTOR/XSETBV/XGETBV */ >> #define X86_FEATURE_HYPERVISOR (4*32+31) /* Running under some hypervisor */ >>=20 >> /* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */ >>=20 >>=20 >=20 > =20 =0A=0A=0A --0-1135927939-1236609080=:20396 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =
Just cloned,built and installed the most rece= nt xen-unstable.
Seems like "make tools"  reports some errors , but= still finishes  with no
error message.
CentOS 5.2 PV DomU may b= e loaded OK only the very first time.
The next attempt after DomU shutdo= wn brings it to paused state.
After "xm unpause DomainName":-

i80= 42.c: No controller found. in  1 seconds
Red Hat nash version 5.1.1= 9.6 starting
  Reading all physical volumes.  This may take a = while...
  No volume groups found
  Volume group "VolGroup0= 0" not found
mount: could not find filesystem '/dev/root'
setuproot: = moving /dev failed: No such file or directory
setuproot: error mounting = /proc: No such file or directory
setuproot: error mounting /sys: No such= file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
 = root@ServerUbuntu810:/home/boris/vm# Error: Device 51712 (vbd) could not be= connected. Hotplug scripts not working.

/var/log/xen/xend.log:-
=
[2009-03-09 10:18:33 6335] DEBUG (XendDomainInfo:2131) No device model<= br>[2009-03-09 10:18:33 6335] DEBUG (XendDomainInfo:2133) Releasing devices=
[2009-03-09 10:19:29 6335] DEBUG (DevController:629) hotplugStatusCallb= ack /local/domain/0/backend/vbd/2/51712/hotplug-status.
[2009-03-09 10:1= 9:29 6335] DEBUG (DevController:643) hotplugStatusCallback 1.
[2009-03-0= 9 10:19:42 6335] ERROR (XendDomainInfo:1983) Failed to restart domain 2.Traceback (most recent call last):
  File "//usr/lib64/python/xen/= xend/XendDomainInfo.py", line 1969, in _restart
    new_d= om.waitForDevices()
  File "//usr/lib64/python/xen/xend/XendDomainI= nfo.py", line 1020, in waitForDevices
    self.getDeviceController(devclass).waitForDevices()
  File "//usr/= lib64/python/xen/xend/server/DevController.py", line 140, in waitForDevices=
    return map(self.waitForDevice, self.deviceIDs())
=   File "//usr/lib64/python/xen/xend/server/DevController.py", line 152= , in waitForDevice
    self.destroyDevice(devid, False)  File "//usr/lib64/python/xen/xend/server/blkif.py", line 200, in d= estroyDevice
    DevController.destroyDevice(self, devid,= force)
  File "//usr/lib64/python/xen/xend/server/DevController.py= ", line 228, in destroyDevice
    self.writeBackend(dev, = 'online', "0")
  File "//usr/lib64/python/xen/xend/server/DevContro= ller.py", line 474, in writeBackend
    raise VmError("De= vice %s not connected" % devid)
VmError: Device 51712 not connected
[= 2009-03-09 10:21:06 6335] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vbd/3/51712/hotplug-status.<= br>[2009-03-09 10:21:06 6335] DEBUG (DevController:643) hotplugStatusCallba= ck 2.

Start F10 PV DomU:-


root@ServerUbuntu810:/home/bori= s/vm# xm create -c f10.pyrun
Using config file "./f10.pyrun".
PCI: Fa= tal: No config space access function found
IO APIC resources could be no= t be allocated.
Loading /lib/kbd/keymaps/i386/qwerty/us.map
BUG: unab= le to handle kernel NULL pointer dereference at 0000000000000000
IP: [&l= t;ffffffffa00010e5>] backend_changed+0x2d5/0x3af [xen_blkfront]
PGD 7= d1f6067 PUD 7d143067 PMD 7d116067 PTE 0
Oops: 0000 [1] SMP
CPU 1 Modules linked in: xen_blkfront
Pid: 19, comm: xenwatch Not tainted 2.6= .27.5-117.fc10.x86_64 #1
RIP: e030:[<ffffffffa00010e5>]  [<= ;ffffffffa00010e5>] backend_changed+0x2d5/0x3af [xen_blkfront]
RSP: e= 02b:ffff88007f40fdf0  EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88007d02d840 RCX: 0000000000000000
RDX: ffff88007f40fe28 RSI: = 0000000000000005 RDI: ffff88007ff5f400
RBP: ffff88007f40fe80 R08: ffff88= 007f40fdd0 R09: ffff88007f40fcc0
R10: 0000000000000001 R11: ffff88000000= 0018 R12: ffff88007ff5f400
R13: ffff88007d042000 R14: 000000000000000a R= 15: ffffffff817e2f44
FS:  00007fb68f67e6f0(0000) GS:ffff88007fc0488= 0(0000) knlGS:0000000000000000
CS:  e033 DS: 0000 ES: 0000 CR0: 000= 000008005003b
CR2: 0000000000000000 CR3: 000000007d105000 CR4: 000000000= 0002660
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 000000000000000= 0
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
P= rocess xenwatch (pid: 19, threadinfo ffff88007f40e000, task ffff88007ffd5c4= 0)
Stack:  ffff88007f40fe00 ffff88007f40fe40 ffffffff816de500 fffff= fff816de500
 ffffffff81455f53 ffffffff81462b99 ffff88007f40fe7c 000= 0000000000000
 000000000000000a ffff88007d02d840 ffff88007ff5f400 ffffffffa0002ac0
Call Trace:
 [<ffffffff811= c91e6>] otherend_changed+0x81/0x8a
 [<ffffffff811c7e14>] x= enwatch_thread+0x101/0x134
 [<ffffffff81055199>] ? autoremove= _wake_function+0x0/0x38
 [<ffffffff811c7d13>] ? xenwatch_thre= ad+0x0/0x134
 [<ffffffff81054e53>] kthread+0x49/0x76
 = ;[<ffffffff810116e9>] child_rip+0xa/0x11
 [<ffffffff81010a= 07>] ? restore_args+0x0/0x30
 [<ffffffff810116df>] ? child= _rip+0x0/0x11


Code: 58 08 e9 97 00 00 00 49 8b 7d 00 48 c7 c2 b9= 15 00 a0 be ed ff ff ff 48 8b 4f 10 31 c0 e8 da 5f 1c e1 e9 cf 00 00 00 49= 8b 45 08 <8b> 38 c1 e7 14 0b 78 04 e8 26 55 0e e1 48 85 c0 48 89 c3 = 75 16
RIP  [<ffffffffa00010e5>] backend_changed+0x2d5/0x3af = [xen_blkfront]
 RSP <ffff88007f40fdf0>
CR2: 00000000000000= 00
---[ end trace bf88f6e1c7a703d2 ]---
root@ServerUbuntu810:/home/boris/vm# Error: Device 51712 (vbd) cou= ld not be connected. Hotplug scripts not working.





--= - On Mon, 3/9/09, Keir Fraser <keir.fraser@eu.citrix.com> wrote:
From: Keir Fraser <keir.fraser@eu.= citrix.com>
Subject: Re: [PATCH] xen: mask XSAVE in cpuid since we do= n't allow guests to use it
To: "bderzhavets@yahoo.com" <bderzhavets@y= ahoo.com>
Cc: "Xen-devel" <xen-devel@lists.xensource.com>
Da= te: Monday, March 9, 2009, 7:26 AM

If you=B9re using a recent x=
en-unstable then you might try again with the
current tip. A couple of c= hanges went in recently (including one fix today).

-- Keir

O= n 09/03/2009 11:18, "Boris Derzhavets" <bderzhavets@yahoo.com>
wro= te:

> I was able to go through creating PV DomUs images via corresponding
pygrub's
> profiles for F10,CentOS 5.2,SNV_106 (64-= bit all).
> However, only Solaris Nevada PV DomU gets loaded via stan= dard
> pygrub profile.
>
> Attempt to load F10 PV:-
= >
> [2009-03-09 05:33:38 6351] DEBUG (XendDomainInfo:92)
> = XendDomainInfo.create(['vm', ['name', 'F10PV'],
['memory', 2048],
>= ; ['on_reboot', 'restart'], ['on_crash',
'restart'], ['vcpus', 1],
&g= t; ['on_xend_start', 'ignore'], ['on_xend_stop',
'ignore'], ['bootloader= ',
> '/usr/bin/pygrub'], ['bootloader_args', '-q'],
['image', ['li= nux',
> ['videoram', 4]]], ['device', ['vbd',
['uname', 'phy:/dev/= sdb5'], ['dev',
> 'xvda'], ['mode', 'w']]], ['device',
['vif', ['b= ridge', 'eth0']]], ['device',
> ['vkbd']], ['device', ['vfb',
['vn= cunused', '1'], ['type', 'vnc'],
> ['xauthority', '/root/.Xauthority'= ]]]])
> [2009-03-09 05:33:38 6351] DEBUG (XendDomainInfo:2183)
> XendDomainInfo.constructDomain
> [2009= -03-09 05:33:38 6351] DEBUG (balloon:166) Balloon: 7239368 KiB free;
nee= d
> 2048; done.
> [2009-03-09 05:33:38 6351] DEBUG (XendDomain:= 452) Adding Domain: 8
> [2009-03-09 05:33:38 6351] DEBUG (XendDomainI= nfo:2362)
> XendDomainInfo.initDomain: 8 256
> [2009-03-09 05:3= 3:38 12975] DEBUG (XendBootloader:113) Launching
bootloader as
> [= '/usr/bin/pygrub',
'--output=3D/var/run/xend/boot/xenbl.29001', '-q',> '/dev/sdb5'].
> [2009-03-09 05:33:39 6351] ERROR (XendBootloade= r:213) Boot loader
didn't
> return any data!
> [2009-03-09 0= 5:33:39 6351] ERROR (XendDomainInfo:472) VM start failed
> Traceback = (most recent call last):
> File "//usr/lib64/python/xen/xend/XendDo= mainInfo.py", line
452, in start
> XendTask.log_progress(31, 6= 0, self._initDomain)
> File "//usr/lib64/python/xen/xend/XendTask.py", line 209, in
log_progress> retval =3D func(*args, **kwds)
> File "//usr/lib64/python= /xen/xend/XendDomainInfo.py", line
2364, in
> _initDomain
> = self._configureBootloader()
> File "//usr/lib64/python/xen/xend= /XendDomainInfo.py", line
2765, in
> _configureBootloader
> = bootloader_args, kernel, ramdisk, args)
> File "//usr/lib64/pyt= hon/xen/xend/XendBootloader.py", line
214, in
> bootloader
>= raise VmError, msg
>
> Attempt to load CentOS 5.2 PV:->
> [2009-03-09 06:45:39 6351] DEBUG (XendDomainInfo:92)
>= XendDomainInfo.create(['vm', ['name', 'RHEL52PV'],
['memory', 2048], ['= vcpus',
> 1], ['on_xend_start', 'ignore'], ['on_xend_stop',
'ignor= e'], ['image',
> ['linux', ['videoram', 4]]], ['device',
['vbd', [= 'uname', 'phy:/dev/sdb5'],
> ['dev', 'xvda'], ['mode', 'w']]],
['device', ['vif', ['bridge', 'eth0']]]])
> [2009-03-09 0= 6:45:39 6351] DEBUG (XendDomainInfo:2183)
> XendDomainInfo.constructD= omain
> [2009-03-09 06:45:39 6351] DEBUG (balloon:166) Balloon: 72393= 68 KiB free;
need
> 2048; done.
> [2009-03-09 06:45:39 6351]= DEBUG (XendDomain:452) Adding Domain: 12
> [2009-03-09 06:45:39 6351= ] DEBUG (XendDomainInfo:2362)
> XendDomainInfo.initDomain: 12 256
= > [2009-03-09 06:45:39 16739] DEBUG (XendBootloader:113) Launching
bo= otloader as
> ['/usr/bin/pygrub',
'--output=3D/var/run/xend/boot/x= enbl.15023', '/dev/sdb5'].
> [2009-03-09 06:45:44 6351] ERROR (XendBo= otloader:213) Boot loader
didn't
> return any data!
> [2009-= 03-09 06:45:44 6351] ERROR (XendDomainInfo:472) VM start failed
> Tra= ceback (most recent call last):
> File "//usr/lib64/python/xen/xend= /XendDomainInfo.py", line
452, in start
> =20 XendTask.log_progress(31, 60, self._initDomain)
> File "//usr/lib6= 4/python/xen/xend/XendTask.py", line 209, in
log_progress
> re= tval =3D func(*args, **kwds)
> File "//usr/lib64/python/xen/xend/Xe= ndDomainInfo.py", line
2364, in
> _initDomain
> self._co= nfigureBootloader()
> File "//usr/lib64/python/xen/xend/XendDomainI= nfo.py", line
2765, in
> _configureBootloader
> bootload= er_args, kernel, ramdisk, args)
> File "//usr/lib64/python/xen/xend= /XendBootloader.py", line
214, in
> bootloader
> raise V= mError, msg
> VmError: Boot loader didn't return any data!
> >
>
>
>
>
>
>
>
&= gt; --- On Sun, 3/8/09, Jeremy Fitzhardinge <jeremy@goop.org> wrote:<= br>>> From: Jeremy Fitzhardinge <jeremy@goop.org>
>> S= ubject: [PATCH] xen: mask XSAVE in cpuid since we don't allow
guests to use
>> it
>> To: "Keir Fraser" <ke= ir.fraser@eu.citrix.com>
>> Cc: "Xen-devel" <xen-devel@lists= .xensource.com>,
"Marc - A. Dahlhaus [
>> Administration | W= estermann GmbH ]" <mad@wol.de>,
"Boris Derzhavets"
>> <= ;bderzhavets@yahoo.com>
>> Date: Sunday, March 8, 2009, 12:31 A= M
>>
>> Mask X86_FEATURE_XSAVE in cpuid leaf 1, ecx, as = we don't allow
guests to
>> use it (by setting cr4.OSXSAVE).>>
>> This prevents crashes in pvops dom0 kernels, as new = versions of Linux
try
>> to use this feature.
>>
&= gt;> (This patch deals with dom0 cpuid; I'm not sure where the right
= place to
>> set up the default mask for domU is.)
>>
= >> Signed-off-by: Jeremy Fitzhardinge
<jeremy.fitzhardinge@citr= ix.com>
>>
>> diff -r 7f573cb76db4 xen/arch/x86/traps.c
>> --- a/xen/arch/x86/traps.c Tue Mar 03 13:= 22:28 2009 +0000
>> +++ b/xen/arch/x86/traps.c Sat Mar 07 17:02:03= 2009 -0800
>> @@ -757,6 +757,7 @@
>> __clear_bit= (X86_FEATURE_XTPR % 32, &c);
>> __clear_bit(X86_FEATUR= E_PDCM % 32, &c);
>> __clear_bit(X86_FEATURE_DCA % 32,= &c);
>> + __clear_bit(X86_FEATURE_XSAVE % 32, &c);=
>> if ( !cpu_has_apic )
>>
>>= ; __clear_bit(X86_FEATURE_X2APIC % 32, &c);
>> __set_= bit(X86_FEATURE_HYPERVISOR % 32, &c);
>> diff -r 7f573cb76db4 = xen/include/asm-x86/cpufeature.h
>> --- a/xen/include/asm-x86/cpuf= eature.h Tue Mar 03 13:22:28 2009 +0000
>> +++ b/xen/include/asm-x= 86/cpufeature.h Sat Mar 07 17:02:03 2009 -0800
>> @@ -95,6 +95,7 @= @
>> #define X86_FEATURE_SSE4_2 (4*32+20) /* Streaming SIMD Extensions 4.2
*/
>> #define X86_FEATURE_X2APIC (4*32+21) /* E= xtended xAPIC */
>> #define X86_FEATURE_POPCNT (4*32+23) /* POPCNT= instruction */
>> +#define X86_FEATURE_XSAVE (4*32+26) /* XSAVE/X= RSTOR/XSETBV/XGETBV */
>> #define X86_FEATURE_HYPERVISOR (4*32+31)= /* Running under some
hypervisor */
>>
>> /* VIA/Cyr= ix/Centaur-defined CPU features, CPUID level 0xC0000001,
word 5 */
&g= t;>
>>
>
>



=0A=0A --0-1135927939-1236609080=:20396-- --===============1887866075== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1887866075==--