All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <raistlin@linux.it>
To: "Ian Jackson" <ian.jackson@eu.citrix.com>,
	"Wei Liu" <wei.liu2@citrix.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	xen-devel@lists.xenproject.org, committers@xenproject.org,
	security@xenproject.org, "Jan Beulich" <JBeulich@suse.com>
Subject: Re: sidecar (hvm shim) creation script
Date: Wed, 10 Jan 2018 18:44:17 +0100	[thread overview]
Message-ID: <1515606257.13211.15.camel@linux.it> (raw)
In-Reply-To: <23126.13380.315656.733601@mariner.uk.xensource.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 10565 bytes --]

On Wed, 2018-01-10 at 15:41 +0000, Ian Jackson wrote:
> Ian Jackson writes ("Re: sidecar (hvm shim) creation script"):
> > And here is one which handles the guest console correctly.  Vixen
> > sends the L2 guest console to the emulated serial, along with the
> > shim's own output.

So, I've got a PV guest that works.

Now I shut it down, run this script, and do `xl create -c' on the
resulting config file, but it dies. :-(

I'm using what's in this branch https://github.com/aliguori/xen/tree/vi
xen-upstream-v2 both as the host hypervisor and as the shim.

So, here's what I see on what I think is vixen's console:

error: Can't get controller info..
 __  __            _  _    _
_                    _        _     _      
 \ \/ /___ _ __   | || |  / / |   _   _ _ __  ___| |_ __ _| |__ | |
___ 
  \  // _ \ '_ \  | || |_ | | |__| | | | '_ \/ __| __/ _` | '_ \| |/ _
\
  /  \  __/ | | | |__   _|| | |__| |_| | | | \__ \ || (_| | |_) |
|  __/
 /_/\_\___|_| |_|    |_|(_)_|_|   \__,_|_|
|_|___/\__\__,_|_.__/|_|\___|
                                                                       
 
(XEN) Xen version 4.11-unstable (dario@fritz.box) (gcc (Debian 7.2.0-
19) 7.2.0) debug=y  Wed Jan 10 13:28:20 UTC 2018
(XEN) Latest ChangeSet: Wed Dec 20 11:09:09 2017 +0000 git:d80556acd4
(XEN) Bootloader: GRUB 2.02-2
(XEN) Command line: placeholder console=com1 com1=115200n1
(XEN) Xen image load base address: 0
(XEN) Video information:
(XEN)  No VGA detected
(XEN) Disc information:
(XEN)  Found 0 MBR signatures
(XEN)  Found 0 EDD information structures
(XEN) Vixen running under Xen 4.11
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009fc00 (usable)
(XEN)  000000000009fc00 - 00000000000a0000 (reserved)
(XEN)  00000000000f0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 000000007f7ff000 (usable)
(XEN)  000000007f7ff000 - 000000007f800000 (reserved)
(XEN)  00000000fc000000 - 00000000feff0000 (reserved)
(XEN)  00000000feff0000 - 0000000100000000 (usable)



While this is L0's console:

(XEN) [  298.886732] grant_table.c:1681:d0v2 Expanding d2 grant table
from 0 to 1 frames
(XEN) [  299.087102] HVM2 save: CPU
(XEN) [  299.087105] HVM2 save: PIC
(XEN) [  299.087108] HVM2 save: IOAPIC
(XEN) [  299.087111] HVM2 save: LAPIC
(XEN) [  299.087113] HVM2 save: LAPIC_REGS
(XEN) [  299.087117] HVM2 save: PCI_IRQ
(XEN) [  299.087119] HVM2 save: ISA_IRQ
(XEN) [  299.087121] HVM2 save: PCI_LINK
(XEN) [  299.087123] HVM2 save: PIT
(XEN) [  299.087125] HVM2 save: RTC
(XEN) [  299.087128] HVM2 save: HPET
(XEN) [  299.087131] HVM2 save: PMTIMER
(XEN) [  299.087133] HVM2 save: MTRR
(XEN) [  299.087141] HVM2 save: VIRIDIAN_DOMAIN
(XEN) [  299.087143] HVM2 save: CPU_XSAVE
(XEN) [  299.087149] HVM2 save: VIRIDIAN_VCPU
(XEN) [  299.087151] HVM2 save: VMCE_VCPU
(XEN) [  299.087153] HVM2 save: TSC_ADJUST
(XEN) [  299.087155] HVM2 save: CPU_MSR
(XEN) [  299.087195] HVM2 restore: CPU 0
[  293.712868] tun: Universal TUN/TAP device driver, 1.6^M
[  293.940987] xenbr0: port 2(vif2.0) entered blocking state^M
[  293.941014] xenbr0: port 2(vif2.0) entered disabled state^M
[  293.941111] device vif2.0 entered promiscuous mode^M
[  293.946041] IPv6: ADDRCONF(NETDEV_UP): vif2.0: link is not ready^M
[  294.139158] xenbr0: port 3(vif2.0-emu) entered blocking state^M
[  294.139202] xenbr0: port 3(vif2.0-emu) entered disabled state^M
[  294.139261] device vif2.0-emu entered promiscuous mode^M
[  294.144532] xenbr0: port 3(vif2.0-emu) entered blocking state^M
[  294.144544] xenbr0: port 3(vif2.0-emu) entered listening state^M
(d2) [  300.952702] HVM Loader
(d2) [  300.952773] Detected Xen v4.11-unstable
(d2) [  300.952850] Xenbus rings @0xfeffc000, event channel 1
(d2) [  300.953103] System requested SeaBIOS
(d2) [  300.953139] CPU speed is 2394 MHz
(d2) [  300.953491] Relocating guest memory for lowmem MMIO space
disabled
(XEN) [  300.954017] irq.c:334: Dom2 PCI link 0 changed 0 -> 5
(d2) [  300.954246] PCI-ISA link 0 routed to IRQ5
(XEN) [  300.954423] irq.c:334: Dom2 PCI link 1 changed 0 -> 10
(d2) [  300.954633] PCI-ISA link 1 routed to IRQ10
(XEN) [  300.954794] irq.c:334: Dom2 PCI link 2 changed 0 -> 11
(d2) [  300.954999] PCI-ISA link 2 routed to IRQ11
(XEN) [  300.955233] irq.c:334: Dom2 PCI link 3 changed 0 -> 5
(d2) [  300.955415] PCI-ISA link 3 routed to IRQ5
(d2) [  300.971627] pci dev 01:3 INTA->IRQ10
(d2) [  300.975567] pci dev 02:0 INTA->IRQ11
(d2) [  300.997380] No RAM in high memory; setting high_mem resource
base to 100000000
(d2) [  300.997576] pci dev 02:0 bar 14 size 001000000: 0f0000008
(d2) [  300.998673] pci dev 02:0 bar 10 size 000000100: 00000c001
(d2) [  300.999767] pci dev 01:1 bar 20 size 000000010: 00000c101
(d2) [  301.000817] Multiprocessor initialisation:
(d2) [  301.000951]  - CPU0 ... 40-bit phys ... fixed MTRRs ... var
MTRRs [1/8] ... done.
(d2) [  301.001249]  - CPU1 ... 40-bit phys ... fixed MTRRs ... var
MTRRs [1/8] ... done.
(d2) [  301.001562]  - CPU2 ... 40-bit phys ... fixed MTRRs ... var
MTRRs [1/8] ... done.
(d2) [  301.001870]  - CPU3 ... 40-bit phys ... fixed MTRRs ... var
MTRRs [1/8] ... done.
(d2) [  301.001953] Testing HVM environment:
(d2) [  301.002002] Using scratch memory at 400000
(d2) [  301.019991]  - REP INSB across page boundaries ... passed
(d2) [  301.031612]  - REP INSW across page boundaries ... passed
(d2) [  301.041228]  - GS base MSRs and SWAPGS ... passed
(d2) [  301.041249] Passed 3 of 3 tests
(d2) [  301.041275] Writing SMBIOS tables ...
(d2) [  301.042145] Loading SeaBIOS ...
(d2) [  301.042231] Creating MP tables ...
(d2) [  301.042387] Loading ACPI ...
(d2) [  301.043421] CONV disabled
(d2) [  301.043630] vm86 TSS at fc00a780
(d2) [  301.044162] BIOS map:
(d2) [  301.044196]  10000-100e3: Scratch space
(d2) [  301.044219]  c0000-fffff: Main BIOS
(d2) [  301.044259] E820 table:
(d2) [  301.044308]  [00]: 00000000:00000000 - 00000000:000a0000: RAM
(d2) [  301.044353]  HOLE: 00000000:000a0000 - 00000000:000c0000
(d2) [  301.044403]  [01]: 00000000:000c0000 - 00000000:00100000:
RESERVED
(d2) [  301.044449]  [02]: 00000000:00100000 - 00000000:7f800000: RAM
(d2) [  301.044491]  HOLE: 00000000:7f800000 - 00000000:fc000000
(d2) [  301.044545]  [03]: 00000000:fc000000 - 00000001:00000000:
RESERVED
(d2) [  301.044642] Invoking SeaBIOS ...
(d2) [  301.045027] SeaBIOS (version rel-1.10.2-0-g5f4c7b1)
(d2) [  301.045096] BUILD: gcc: (Debian 7.2.0-19) 7.2.0 binutils: (GNU
Binutils for Debian) 2.29.1
(d2) [  301.045099] 
(d2) [  301.045138] Found Xen hypervisor signature at 40000000
(d2) [  301.045442] Running on QEMU (i440fx)
(d2) [  301.045465] xen: copy e820...
(d2) [  301.045524] Relocating init from 0x000daf80 to 0x7f7ad360 (size
76800)
(d2) [  301.048415] Found 5 PCI devices (max PCI bus is 00)
(d2) [  301.048456] Allocated Xen hypercall page at 7f7ff000
(d2) [  301.048492] Detected Xen v4.11-unstable
(d2) [  301.048518] xen: copy BIOS tables...
(d2) [  301.048576] Copying SMBIOS entry point from 0x00010020 to
0x000f6b20
(d2) [  301.048631] Copying MPTABLE from 0xfc0011f0/fc001200 to
0x000f6a00
(d2) [  301.048674] Copying PIR from 0x00010040 to 0x000f6980
(d2) [  301.048718] Copying ACPI RSDP from 0x000100c0 to 0x000f6950
(d2) [  301.048747] Using pmtimer, ioport 0xb008
(d2) [  301.048893] Scan for VGA option rom
(d2) [  301.050267] ATA controller 1 at 1f0/3f4/c100 (irq 14 dev 9)
(d2) [  301.051553] ATA controller 2 at 170/374/c108 (irq 15 dev 9)
(d2) [  301.052569] Found 0 lpt ports
(d2) [  301.052762] Found 1 serial ports
(d2) [  301.055677] DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
(d2) [  301.055731] Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/d
isk@0
(d2) [  301.056943] PS2 keyboard initialized
(d2) [  301.056965] All threads complete.
(d2) [  301.056986] Scan for option roms
(d2) [  301.058379] 
(d2) [  301.065610] Press ESC for boot menu.
(d2) [  301.066100] 
[  296.154652] xenbr0: port 3(vif2.0-emu) entered learning state^M
(d2) [  303.684355] Searching bootorder for: HALT
(d2) [  303.684666] Space available for UMB: c0000-ec800, f6340-f68b0
(d2) [  303.684720] Returned 258048 bytes of ZoneHigh
(d2) [  303.684755] e820 map has 6 items:
(d2) [  303.684828]   0: 0000000000000000 - 000000000009fc00 = 1 RAM
(d2) [  303.684909]   1: 000000000009fc00 - 00000000000a0000 = 2
RESERVED
(d2) [  303.684990]   2: 00000000000f0000 - 0000000000100000 = 2
RESERVED
(d2) [  303.685064]   3: 0000000000100000 - 000000007f7ff000 = 1 RAM
(d2) [  303.685144]   4: 000000007f7ff000 - 000000007f800000 = 2
RESERVED
(d2) [  303.685225]   5: 00000000fc000000 - 0000000100000000 = 2
RESERVED
(d2) [  303.686459] enter handle_19:
(d2) [  303.686473]   NULL
(d2) [  303.694760] Booting from DVD/CD...
(d2) [  303.701138] Booting from 0000:7c00
[  298.170547] xenbr0: port 3(vif2.0-emu) entered forwarding state^M
[  298.170616] xenbr0: topology change detected, propagating^M
(XEN) [  314.149788] d2v0 Triple fault - invoking HVM shutdown action 1
(XEN) [  314.149791] *** Dumping Dom2 vcpu#0 state: ***
(XEN) [  314.149796] ----[ Xen-4.11-unstable  x86_64  debug=y   Not
tainted ]----
(XEN) [  314.149798] CPU:    15
(XEN) [  314.149801] RIP:    e008:[<ffff82d080417368>]
(XEN) [  314.149803] RFLAGS: 0000000000010002   CONTEXT: hvm guest
(d2v0)
(XEN) [  314.149807] rax: ffff8300ffe80000   rbx:
00000000ffe73000   rcx: 0000000000000000
(XEN) [  314.149810] rdx: ffff82d080480000   rsi:
0000000000000020   rdi: ffff8300ffe88000
(XEN) [  314.149814] rbp: ffff82d080487f08   rsp:
ffff82d080487dd8   r8:  fff0000000000fff
(XEN) [  314.149817] r9:  000ffffffffff000   r10:
000000ffffffffff   r11: 0000000000001000
(XEN) [  314.149820] r12: ffff830000000000   r13:
00000000ffa00000   r14: 00000000ff000000
(XEN) [  314.149823] r15: ffff82d0804552bc   cr0:
0000000080050033   cr4: 0000000000000020
(XEN) [  314.149825] cr3: 00000000ffe73000   cr2: ffff82d080417368
(XEN) [  314.149827] fsb: 0000000000000000   gsb:
0000000000000000   gss: 0000000000000002
(XEN) [  314.149830] ds: 0000   es: 0000   fs: 0000   gs: 0000   ss:
0000   cs: e008



Also, find attached the various log files.

So... what am I doing wrong? :-)

Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Software Engineer @ SUSE https://www.suse.com/

[-- Attachment #1.1.2: xl-vm10.log --]
[-- Type: text/x-log, Size: 212 bytes --]

Waiting for domain vm10 (domid 2) to die [pid 2041]
Domain 2 has shut down, reason code 1 0x1
Action for shutdown reason code 1 is destroy
Domain 2 needs to be cleaned up: destroying the domain
Done. Exiting now

[-- Attachment #1.1.3: qemu-dm-vm10.log --]
[-- Type: text/x-log, Size: 1759 bytes --]

+ : -xen-domid 2 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait -no-shutdown -mon chardev=libxl-cmd,mode=control -chardev socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-2,server,nowait -mon chardev=libxenstat-cmd,mode=control -nodefaults -no-user-config -name vm10 -vnc 127.0.0.1:0,to=99 -display none -kernel /root/vm10/vmlinuz-4.14.0-3-amd64 -initrd /root/vm10/initrd.img-4.14.0-3-amd64 -append 'root=/dev/xvda1 ro' -serial pty -device cirrus-vga,vgamem_mb=8 -boot order=c -smp 4,maxcpus=4 -device rtl8139,id=nic0,netdev=net0,mac=00:16:3e:6c:5a:d4 -netdev type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no -machine xenfv -cdrom /var/lib/xen/pvshim-sidecars/vm10.iso -m 2040 -drive file=/dev/vms/vm10-disk,if=ide,index=0,media=disk,format=raw,cache=writeback
+ set +x
warning: unexpected argument -serial being passed through
warning: unexpected argument pty being passed through
warning: unexpected argument -smp being passed through
warning: unexpected argument 4,maxcpus=4 being passed through
+ exec /usr/local/lib/xen/bin/qemu-system-i386 -xen-domid 2 -chardev socket,id=libxl-cmd,path=/var/run/xen/qmp-libxl-2,server,nowait -no-shutdown -mon chardev=libxl-cmd,mode=control -chardev socket,id=libxenstat-cmd,path=/var/run/xen/qmp-libxenstat-2,server,nowait -mon chardev=libxenstat-cmd,mode=control -nodefaults -no-user-config -name vm10 -display none -serial pty -boot order=c -smp 4,maxcpus=4 -netdev type=tap,id=net0,ifname=vif2.0-emu,script=no,downscript=no -machine xenfv -cdrom /var/lib/xen/pvshim-sidecars/vm10.iso -m 2040
qemu-system-i386: -serial pty: char device redirected to /dev/pts/2 (label serial0)
Warning: netdev net0 has no peer
qemu-system-i386: terminating on signal 1 from pid 2041 (xl)

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2018-01-10 17:44 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-08 17:45 Radical proposal: ship not-fully-tidied shim as 4.10.1 Ian Jackson
2018-01-08 18:08 ` Anthony Liguori
2018-01-08 18:13 ` Konrad Rzeszutek Wilk
2018-01-08 18:20   ` Anthony Liguori
2018-01-08 18:56 ` Lars Kurth
2018-01-08 21:01 ` Rich Persaud
2018-01-08 21:44   ` Anthony Liguori
2018-01-08 22:08     ` Rich Persaud
2018-01-09 17:55     ` Doug Goldstein
2018-01-09 10:38   ` George Dunlap
2018-01-09 16:52     ` Stefano Stabellini
2018-01-09 17:23       ` Anthony Liguori
2018-01-09 17:33         ` Jan Beulich
2018-01-09 17:48           ` Anthony Liguori
2018-01-09 17:49           ` Doug Goldstein
2018-01-09 17:56             ` Stefano Stabellini
2018-01-09 18:22               ` Rich Persaud
2018-01-09 22:11                 ` Hans van Kranenburg
2018-01-09 22:20                   ` pedro
2018-01-10  5:50                   ` Juergen Gross
2018-01-11 15:25                     ` Hans van Kranenburg
2018-01-09 17:58         ` Wei Liu
2018-01-09 20:57           ` Matt Wilson
2018-01-10  1:39             ` Mike Latimer
2018-01-09  0:14 ` Andrew Cooper
2018-01-09  8:24   ` Jan Beulich
2018-01-09 11:50     ` Wei Liu
2018-01-09 17:59       ` Doug Goldstein
2018-01-09 18:01         ` Wei Liu
2018-01-09 10:49   ` Ian Jackson
2018-01-09 14:45     ` Anthony Liguori
2018-01-09 10:53   ` Ian Jackson
2018-01-09 10:55     ` George Dunlap
2018-01-09 10:58       ` Ian Jackson
2018-01-09 14:08         ` Anthony Liguori
2018-01-09 14:16           ` Roger Pau Monné
2018-01-09 18:13 ` Doug Goldstein
2018-01-09 18:21   ` George Dunlap
2018-01-09 19:43 ` Wei Liu
2018-01-09 19:51   ` Anthony Liguori
2018-01-10  8:32   ` Roger Pau Monné
2018-01-10 12:27     ` Wei Liu
2018-01-10 13:07       ` sidecar (hvm shim) creation script Ian Jackson
2018-01-10 13:10         ` Wei Liu
2018-01-10 15:12           ` Ian Jackson
2018-01-10 15:39             ` Ian Jackson
2018-01-10 15:41               ` Ian Jackson
2018-01-10 16:25                 ` Ian Jackson
2018-01-10 16:36                   ` George Dunlap
2018-01-10 16:51                     ` Doug Goldstein
2018-01-10 17:07                 ` Dario Faggioli
2018-01-10 17:44                 ` Dario Faggioli [this message]
2018-01-10 21:49                   ` Anthony Liguori
2018-01-10 23:08               ` Doug Goldstein
2018-01-11 10:50                 ` George Dunlap
2018-01-10 14:42         ` Anthony Liguori
2018-01-10 14:47       ` Radical proposal: ship not-fully-tidied shim as 4.10.1 Anthony Liguori

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=1515606257.13211.15.camel@linux.it \
    --to=raistlin@linux.it \
    --cc=JBeulich@suse.com \
    --cc=committers@xenproject.org \
    --cc=ian.jackson@eu.citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=security@xenproject.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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.