From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [xs-devel] Trying to bring up stub domain in xen-4.4-xs88306 Date: Thu, 13 Aug 2015 10:54:37 +0100 Message-ID: <55CC695D.2060307@citrix.com> References: <55CC68CE.7020400@citrix.com> Reply-To: xs-devel@lists.xenserver.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6981746544785839799==" Return-path: In-Reply-To: <55CC68CE.7020400@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xs-devel@lists.xenserver.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org --===============6981746544785839799== Content-Type: multipart/alternative; boundary="------------070405080909030703000305" --------------070405080909030703000305 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 13/08/15 10:52, Andrew Cooper wrote: > On 13/08/15 08:04, Xuehan Xu wrote: >> Hi, everyone. >> >> I'm trying to run a Windows HVM vm with stub domain in xenserver-6.5, >> whose internal xen version is xen-4.4-xs88306. After I started the >> vm, both the vm and its corresponding stub domain crashed. Here is >> the related content in hypervisor.log. The domain ID of the windows >> vm is 1, and the stub domain's id is 2. >> >> [2015-08-12 17:11:24] (d1) [ 135.564650] HVM Loader >> [2015-08-12 17:11:24] (d1) [ 135.564756] Detected Xen v4.4.1-xs88306 >> [2015-08-12 17:11:24] (d1) [ 135.564850] Xenbus rings @0xfeffc000, >> event channel 2 >> [2015-08-12 17:11:24] (d1) [ 135.565048] System requested ROMBIOS >> [2015-08-12 17:11:24] (d1) [ 135.565090] CPU speed is 2494 MHz >> [2015-08-12 17:11:24] (d2) [ 135.565234] Bootstrapping... >> [2015-08-12 17:11:24] (d2) [ 135.565275] Xen Minimal OS! >> [2015-08-12 17:11:24] (d2) [ 135.565284] start_info: 0x585000(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565289] nr_pages: 0x2000 >> [2015-08-12 17:11:24] (d2) [ 135.565293] shared_inf: 0xbda9e000(MA) >> [2015-08-12 17:11:24] (d2) [ 135.565296] pt_base: 0x588000(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565300] nr_pt_frames: 0x7 >> [2015-08-12 17:11:24] (d2) [ 135.565304] mfn_list: 0x575000(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565307] mod_start: 0x0(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565311] mod_len: 0 >> [2015-08-12 17:11:24] (d2) [ 135.565314] flags: 0x0 >> [2015-08-12 17:11:24] (d2) [ 135.565318] cmd_line: >> [2015-08-12 17:11:24] (d2) [ 135.565374] stack: 0x534660-0x554660 >> [2015-08-12 17:11:24] (d2) [ 135.565381] MM: Init >> [2015-08-12 17:11:24] (d2) [ 135.565385] _text: 0x0(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565389] _etext: 0x1203b2(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565393] _erodata: 0x176000(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565396] _edata: 0x17bf88(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565399] stack start: 0x534660(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565402] _end: 0x574f68(VA) >> [2015-08-12 17:11:24] (d2) [ 135.565406] start_pfn: 592 >> [2015-08-12 17:11:24] (d2) [ 135.565410] max_pfn: 2000 >> [2015-08-12 17:11:24] (d2) [ 135.565414] Mapping memory range >> 0x800000 - 0x2000000 >> [2015-08-12 17:11:24] (d1) [ 135.565525] Relocating guest memory for >> lowmem MMIO space enabled >> [2015-08-12 17:11:24] (d1) [ 135.565586] PCI-ISA link 0 routed to IRQ5 >> [2015-08-12 17:11:24] (d1) [ 135.565648] PCI-ISA link 1 routed to IRQ10 >> [2015-08-12 17:11:24] (d1) [ 135.565710] PCI-ISA link 2 routed to IRQ11 >> [2015-08-12 17:11:24] (d1) [ 135.565770] PCI-ISA link 3 routed to IRQ5 >> [2015-08-12 17:11:24] (d1) [ 135.566884] *** HVMLoader assertion >> '(devfn != PCI_ISA_DEVFN) || ((vendor_id == 0x8086) && >> [2015-08-12 17:11:24] (d1) [ 135.566968] (device_id == 0x7000))' >> failed at pci.c:112 >> [2015-08-12 17:11:24] (d1) [ 135.567012] *** HVMLoader crashed. >> [2015-08-12 17:11:24] (d2) [ 135.568790] setting 0x0-0x176000 readonly >> [2015-08-12 17:11:24] (d2) [ 135.568799] skipped 0x1000 >> [2015-08-12 17:11:24] (d2) [ 135.568980] MM: Initialise page >> allocator for 59e000(59e000)-2000000(2000000) >> [2015-08-12 17:11:24] (d2) [ 135.568999] MM: done >> [2015-08-12 17:11:24] (d2) [ 135.569050] Demand map pfns at >> 2001000-2002001000. >> [2015-08-12 17:11:24] (d2) [ 135.569056] Heap resides at >> 2002002000-4002002000. >> [2015-08-12 17:11:24] (d2) [ 135.569060] Initialising timer interface >> [2015-08-12 17:11:24] (d2) [ 135.569125] Initialising console ... done. >> [2015-08-12 17:11:24] (d2) [ 135.569199] gnttab_table mapped at >> 0x2001000. >> [2015-08-12 17:11:24] (d2) [ 135.569205] Initialising scheduler >> [2015-08-12 17:11:24] (d2) [ 135.569216] Thread "Idle": pointer: >> 0x2002002050, stack: 0x5c0000 >> [2015-08-12 17:11:24] (d2) [ 135.569225] Thread "xenstore": pointer: >> 0x2002002800, stack: 0x5d0000 >> [2015-08-12 17:11:24] (d2) [ 135.569232] xenbus initialised on irq 1 >> mfn 0xbd3f5 >> [2015-08-12 17:11:24] (d2) [ 135.569247] Thread "shutdown": pointer: >> 0x2002002fb0, stack: 0x5e0000 >> [2015-08-12 17:11:24] (d2) [ 135.569254] Dummy main: start_info=0x554760 >> [2015-08-12 17:11:24] (d2) [ 135.569260] Thread "main": pointer: >> 0x2002003760, stack: 0x5f0000 >> [2015-08-12 17:11:24] (d2) [ 135.569295] Thread "pcifront": pointer: >> 0x2002003f50, stack: 0x600000 >> [2015-08-12 17:11:24] (d2) [ 135.569311] pcifront_watches: waiting >> for backend path to appear device/pci/0/backend >> [2015-08-12 17:11:24] (d2) [ 135.570783] dom vm is at >> /vm/8b9cf2d6-4f2e-b0b4-36fb-1728f111f6e7 >> [2015-08-12 17:11:24] (d2) [ 135.571479] ************************ >> NETFRONT for device/vif/0 ********** >> [2015-08-12 17:11:24] (d2) [ 135.571484] >> [2015-08-12 17:11:24] (d2) [ 135.571486] >> [2015-08-12 17:11:24] (d2) [ 135.571518] net TX ring size 256 >> [2015-08-12 17:11:24] (d2) [ 135.571522] net RX ring size 256 >> [2015-08-12 17:11:24] (d2) [ 135.575064] backend at >> /local/domain/0/backend/vif/2/0 >> [2015-08-12 17:11:24] (d2) [ 135.575073] mac is 4a:88:53:cf:88:0d >> [2015-08-12 17:11:24] (d2) [ 135.578516] backend not avalable, state=5 >> [2015-08-12 17:11:24] (d2) [ 135.578830] TAP open failed >> [2015-08-12 17:11:24] (d2) [ 135.578843] close(0) >> [2015-08-12 17:11:24] (d2) [ 135.578849] close(1) >> [2015-08-12 17:11:24] (d2) [ 135.578852] close(2) >> [2015-08-12 17:11:24] (d2) [ 135.578856] main returned 1 >> [2015-08-12 17:11:24] (d2) [ 135.578878] Do_exit called! >> [2015-08-12 17:11:24] (d2) [ 135.578885] base is 0x5ff9e8 caller is >> 0xeed87 >> [2015-08-12 17:11:24] (d2) [ 135.578890] base is 0x5ffa08 caller is >> 0xefbdf >> [2015-08-12 17:11:24] (d2) [ 135.578896] base is 0x5ffa38 caller is >> 0x10d3cb >> [2015-08-12 17:11:24] (d2) [ 135.578901] base is 0x5ffa58 caller is >> 0x859e >> [2015-08-12 17:11:24] (d2) [ 135.578906] base is 0x5ffe18 caller is >> 0xefb61 >> [2015-08-12 17:11:24] (d2) [ 135.578912] base is 0x5fffe8 caller is >> 0x343b >> >> Can anyone give some clew about how to fix this? Thanks:-) > > s/clew/clue/ > > I presume you mean a stub qemu domain? At a very minimum, you need the > stub domain booted completely *before* starting windows. > > The windows VM is crashing because of: > > (d1) [ 135.566884] *** HVMLoader assertion '(devfn != PCI_ISA_DEVFN) > || ((vendor_id == 0x8086) && > (d1) [ 135.566968] (device_id == 0x7000))' failed at pci.c:112 > (d1) [ 135.567012] *** HVMLoader crashed. > > because the stub domain is emulating a PCI bus at the point at which > HVMLoader is looking for one. Sorry. "is not emulating a". ~Andrew --------------070405080909030703000305 Content-Type: text/html; charset="utf-8" Content-Length: 11066 Content-Transfer-Encoding: quoted-printable
On 13/08/15 10:52, Andrew Cooper wrote:
On 13/08/15 08:04, Xuehan Xu wrote:
Hi, everyone.

I'm trying to run a Windows HVM vm with stub domain in xenserver-6.5, whose internal xen version is xen-4.4-xs88306. After I started the vm, both the vm and its corresponding stub domain crashed. Here is the related content in hypervisor.log. The domain ID of the windows vm is 1, and the stub domain's id is 2.

[2015-08-12 17:11:24] (d1) [ =C2=A0135.564650] HVM Loader
[2015-08-12 17:11:24] (d1) [ =C2=A0135.564756] Detected Xen v4.4.1-xs88306
[2015-08-12 17:11:24] (d1) [ =C2=A0135.564850] Xenbus rings @0xfeffc000, event channel 2
[2015-08-12 17:11:24] (d1) [ =C2=A0135.565048] System requested ROMBIOS
[2015-08-12 17:11:24] (d1) [ =C2=A0135.565090] CPU speed is 2494 MHz
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565234] Bootstrapping...
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565275] Xen Minimal OS!
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565284] =C2=A0 start_info: 0x585000(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565289] =C2=A0 =C2=A0 nr_pages: 0x2000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565293] =C2=A0 shared_inf: 0xbda9e000(MA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565296] =C2=A0 =C2=A0 =C2=A0pt_base: 0x588000(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565300] nr_pt_frames: 0x7
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565304] =C2=A0 =C2=A0 mfn_list: 0x575000(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565307] =C2=A0 =C2=A0mod_start: 0x0(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565311] =C2=A0 =C2=A0 =C2=A0mod_len: 0
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565314] =C2=A0 =C2=A0 =C2=A0 =C2=A0flags: 0x0
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565318] =C2=A0 =C2=A0 cmd_line:=C2=A0
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565374] =C2=A0 stack: =C2=A0 =C2=A0 =C2=A00x534660-0x554660
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565381] MM: Init
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565385] =C2=A0 =C2=A0 =C2=A0 _text: 0x0(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565389] =C2=A0 =C2=A0 =C2=A0_etext: 0x1203b2(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565393] =C2=A0 =C2=A0_erodata: 0x176000(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565396] =C2=A0 =C2=A0 =C2=A0_edata: 0x17bf88(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565399] stack start: 0x534660(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565402] =C2=A0 =C2=A0 =C2=A0 =C2=A0_end: 0x574f68(VA)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565406] =C2=A0 start_pfn: 592
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565410] =C2=A0 =C2=A0 max_pfn: 2000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.565414] Mapping memory range 0x800000 - 0x2000000
[2015-08-12 17:11:24] (d1) [ =C2=A0135.565525] Relocating guest memory for lowmem MMIO space enabled
[2015-08-12 17:11:24] (d1) [ =C2=A0135.565586] PCI-ISA link 0 routed to IRQ5
[2015-08-12 17:11:24] (d1) [ =C2=A0135.565648] PCI-ISA link 1 routed to IRQ10
[2015-08-12 17:11:24] (d1) [ =C2=A0135.565710] PCI-ISA link 2 routed to IRQ11
[2015-08-12 17:11:24] (d1) [ =C2=A0135.565770] PCI-ISA link 3 routed to IRQ5
[2015-08-12 17:11:24] (d1) [ =C2=A0135.566884] *** HVMLoader assertion '(devfn !=3D PCI_ISA_DEVFN) || ((vendor_id =3D=3D 0x8086) &&=C2=A0
[2015-08-12 17:11:24] (d1) [ =C2=A0135.566968] (device_id =3D=3D 0x7000))' failed at pci.c:112
[2015-08-12 17:11:24] (d1) [ =C2=A0135.567012] *** HVMLoader crashed.
[2015-08-12 17:11:24] (d2) [ =C2=A0135.568790] setting 0x0-0x176000 readonly
[2015-08-12 17:11:24] (d2) [ =C2=A0135.568799] skipped 0x1000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.568980] MM: Initialise page allocator for 59e000(59e000)-2000000(2000000)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.568999] MM: done
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569050] Demand map pfns at 2001000-2002001000.
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569056] Heap resides at 2002002000-4002002000.
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569060] Initialising timer interface
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569125] Initialising console ... done.
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569199] gnttab_table mapped at 0x2001000.
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569205] Initialising scheduler
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569216] Thread "Idle": pointer: 0x2002002050, stack: 0x5c0000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569225] Thread "xenstore": pointer: 0x2002002800, stack: 0x5d0000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569232] xenbus initialised on irq 1 mfn 0xbd3f5
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569247] Thread "shutdown": pointer: 0x2002002fb0, stack: 0x5e0000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569254] Dummy main: start_info=3D0x554760
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569260] Thread "main": pointer: 0x2002003760, stack: 0x5f0000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569295] Thread "pcifront": pointer: 0x2002003f50, stack: 0x600000
[2015-08-12 17:11:24] (d2) [ =C2=A0135.569311] pcifront_watches: waiting for backend path to appear device/pci/0/backend
[2015-08-12 17:11:24] (d2) [ =C2=A0135.570783] dom vm is at /vm/8b9cf2d6-4f2e-b0b4-36fb-1728f111f6e7
[2015-08-12 17:11:24] (d2) [ =C2=A0135.571479] ************************ NETFRONT for device/vif/0 **********
[2015-08-12 17:11:24] (d2) [ =C2=A0135.571484]=C2=A0
[2015-08-12 17:11:24] (d2) [ =C2=A0135.571486]=C2=A0
[2015-08-12 17:11:24] (d2) [ =C2=A0135.571518] net TX ring size 256
[2015-08-12 17:11:24] (d2) [ =C2=A0135.571522] net RX ring size 256
[2015-08-12 17:11:24] (d2) [ =C2=A0135.575064] backend at /local/domain/0/backend/vif/2/0
[2015-08-12 17:11:24] (d2) [ =C2=A0135.575073] mac is 4a:88:53:cf:88:0d
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578516] backend not avalable, state=3D5
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578830] TAP open failed
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578843] close(0)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578849] close(1)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578852] close(2)
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578856] main returned 1
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578878] Do_exit called!
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578885] base is 0x5ff9e8 caller is 0xeed87
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578890] base is 0x5ffa08 caller is 0xefbdf
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578896] base is 0x5ffa38 caller is 0x10d3cb
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578901] base is 0x5ffa58 caller is 0x859e
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578906] base is 0x5ffe18 caller is 0xefb61
[2015-08-12 17:11:24] (d2) [ =C2=A0135.578912] base is 0x5fffe8 caller is 0x343b

Can anyone give some clew about how to fix this=3F Thanks:-)

s/clew/clue/

I presume you mean a stub qemu domain=3F At a very minimum, you need the stub domain booted completely *before* starting windows.

The windows VM is crashing because of:

(d1) [ =C2=A0135.566884] *** HVMLoader assertion '(devfn !=3D PCI_ISA_DEVFN) || ((vendor_id =3D=3D 0x8086) &&=C2=A0
(d1) [ =C2=A0135.566968] (device_id =3D=3D 0x7000))' failed at pci.c:112
(d1) [ =C2=A0135.567012] *** HVMLoader crashed.

because the stub domain is emulating a PCI bus at the point at which HVMLoader is looking for one.

Sorry.=C2=A0 "is not emulating a".

~Andrew
--------------070405080909030703000305-- --===============6981746544785839799== 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.xen.org http://lists.xen.org/xen-devel --===============6981746544785839799==--