[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Issues starting VM using Xen 4.12 & Xen 4.9



Hello list, 

I'm running AMD Ryzen 3600 processor. L0 is Ubuntu 18.04 Kernel 5.2.7 
L1 is Fedora 29 Kernel 5.1.21 - L2 is Windows 7. I'm using host-passthrough for L1. 

Compiled against library: libvirt 5.6.0
Using library: libvirt 5.6.0
Using API: Xen 5.6.0
Running hypervisor: Xen 4.12.0

I seem to hit a snag after I try start a VM (creation with pause works fine). Domain-0 is running no problem..  I've also tried this on Xen 4.9, didn't have the errors logging, but same kind of behaviour. 
Any suggestions?

Thank you,
Travis


From the serial output with debug:
(XEN) event_channel.c:319:d0v1 EVTCHNOP failure: domain 1, error -22
(XEN) emul-priv-op.c:1112:d0v1 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v1 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) emul-priv-op.c:1112:d0v0 Domain attempted WRMSR c0011020 from 0x0000000000000000 to 0x0000000000000400
(XEN) Debugging connection not set up.
(XEN) ----[ Xen-4.12.1-pre  x86_64  debug=y   Not tainted ]----
(XEN) CPU:    1
(XEN) RIP:    e008:[<ffff82d08031e1bd>] svm_asm_do_resume+0x9d/0x173
(XEN) RFLAGS: 0000000000010296   CONTEXT: hypervisor (d1v0)
(XEN) rax: 000000007e567000   rbx: 000000000017f000   rcx: 0000000000000000
(XEN) rdx: 0000000000000000   rsi: 0000000000000000   rdi: 0000000000000000
(XEN) rbp: 0000000000000000   rsp: ffff83007b367f70   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 000000008005003b   cr4: 00000000003506e0
(XEN) cr3: 000000007f214000   cr2: ffff88806a5386e0
(XEN) fsb: 0000000000000000   gsb: 0000000000000000   gss: 0000000000000000
(XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: e008
(XEN) Xen code around <ffff82d08031e1bd> (svm_asm_do_resume+0x9d/0x173):
(XEN)  5f 0f 01 dd fb 0f 01 d8 <48> 83 c4 88 fc 48 89 7c 24 70 31 ff 48 89 74 24
(XEN) Xen stack trace from rsp=ffff83007b367f70:
(XEN)    0000000000000000 0000000000100000 0000000000000000 0000000000000002
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000e01000000001 ffff830056e6b000
(XEN)    0000002fff60e900 00000000003506e0 0000000000000000 0000000000000000
(XEN)    0000040000000000 0000000000000000
(XEN) Xen call trace:
(XEN)    [<ffff82d08031e1bd>] svm_asm_do_resume+0x9d/0x173
(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 1:
(XEN) GENERAL PROTECTION FAULT
(XEN) [error_code=0000]
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) Debugging connection not set up.


win7.xml:
<domain type='xen'>
  <name>win7</name>
  <uuid>86c51e5f-36cb-48bc-b219-601ee7e0c7d0</uuid>
  <memory unit='KiB'>1536000</memory>
  <currentMemory unit='KiB'>1536000</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <os>
    <type arch='x86_64' machine='xenfv'>hvm</type>
    <loader type='rom'>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/data/images/win7.qcow2'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='ide' index='0'/>
    <interface type='network'>
      <mac address='00:16:3e:60:08:e7'/>
      <source network='default'/>
      <model type='rtl8139'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='vga' vram='16384' heads='1' primary='yes'/>
    </video>
  </devices>
</domain>


[vagrant@localhost xen]$ cat qemu-dm-win7.log
domid: 1
Strip off blktap sub-type prefix to /data/images/win7.qcow2 (drv 'qcow2')
Using file /data/images/win7.qcow2 in read-write mode
qemu: could not open vbd '/local/domain/0/backend/qdisk/1/768/mode' or hard disk image '/data/images/win7.qcow2' (drv 'qcow2' format 'qcow2')
Watching device-model/1/logdirty/cmd
Watching device-model/1/command
Watching /local/domain/1/cpu
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feff0
buffered io page at pfn feff1
Guest uuid = 86c51e5f-36cb-48bc-b219-601ee7e0c7d0
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
xs_read(device-model/1/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error. /vm/86c51e5f-36cb-48bc-b219-601ee7e0c7d0/vncpasswd.
Log-dirty: no command yet.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
vcpu-set: watch node error.
[xenstore_process_vcpu_set_event]: /local/domain/1/cpu has no CPU!
xs_read(/local/domain/1/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/1/log-throttling'
medium change watch on `/local/domain/1/log-throttling' - unknown device, ignored

[vagrant@localhost xen]$ sudo xl dmesg
Xen 4.12.1-pre
(XEN) Xen version 4.12.1-pre (vagrant@) (gcc (GCC) 8.2.1 20180801 (Red Hat 8.2.1-2)) debug=n  Sat Aug 10 18:24:20 UTC 2019
(XEN) Latest ChangeSet: Wed Jun 26 14:37:26 2019 +0100 git:dcc0bf5dec
(XEN) Bootloader: GRUB 2.03
(XEN) Command line: placeholder loglvl=all guest_loglvl=all
(XEN) Xen image load base address: 0x7f600000
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN) Disc information:
(XEN)  Found 1 MBR signatures
(XEN)  Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009fc00 (usable)
(XEN)  000000000009fc00 - 00000000000a0000 (reserved)
(XEN)  00000000000f0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 000000007ffdc000 (usable)
(XEN)  000000007ffdc000 - 0000000080000000 (reserved)
(XEN)  00000000feffc000 - 00000000ff000000 (reserved)
(XEN)  00000000fffc0000 - 0000000100000000 (reserved)
(XEN) System RAM: 2047MB (2096620kB)
(XEN) ACPI: RSDP 000F57E0, 0014 (r0 BOCHS )
(XEN) ACPI: RSDT 7FFE140F, 0030 (r1 BOCHS  BXPCRSDT        1 BXPC        1)
(XEN) ACPI: FACP 7FFE12C3, 0074 (r1 BOCHS  BXPCFACP        1 BXPC        1)
(XEN) ACPI: DSDT 7FFDFD40, 1583 (r1 BOCHS  BXPCDSDT        1 BXPC        1)
(XEN) ACPI: FACS 7FFDFD00, 0040
(XEN) ACPI: APIC 7FFE1337, 00A0 (r1 BOCHS  BXPCAPIC        1 BXPC        1)
(XEN) ACPI: HPET 7FFE13D7, 0038 (r1 BOCHS  BXPCHPET        1 BXPC        1)
(XEN) No NUMA configuration found
(XEN) Faking a node at 0000000000000000-000000007ffdc000
(XEN) Domain heap initialised
(XEN) CPU Vendor: AMD, Family 23 (0x17), Model 113 (0x71), Stepping 0 (raw 00870f10)
(XEN) found SMP MP-table at 000f5830
(XEN) DMI 2.8 present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port: 0x608 (24 bits)
(XEN) ACPI: SLEEP INFO: pm1x_cnt[1:604,1:0], pm1x_evt[1:600,1:0]
(XEN) ACPI:             wakeup_vec[7ffdfd0c], vec_size[20]
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
(XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
(XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
(XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
(XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x04] enabled)
(XEN) ACPI: LAPIC (acpi_id[0x05] lapic_id[0x05] enabled)
(XEN) ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
(XEN) ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
(XEN) IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
(XEN) ACPI: IRQ0 used by override.
(XEN) ACPI: IRQ2 used by override.
(XEN) ACPI: IRQ5 used by override.
(XEN) ACPI: IRQ9 used by override.
(XEN) ACPI: IRQ10 used by override.
(XEN) ACPI: IRQ11 used by override.
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) ACPI: HPET id: 0x8086a201 base: 0xfed00000
(XEN) ERST table was not found
(XEN) Using ACPI (MADT) for SMP configuration information
(XEN) SMP: Allowing 6 CPUs (0 hotplug CPUs)
(XEN) IRQ limits: 24 GSI, 1144 MSI/MSI-X
(XEN) Not enabling x2APIC: depends on iommu_supports_eim.
(XEN) xstate: size: 0x340 and states: 0x7
(XEN) CPU0: AMD Fam17h machine check reporting enabled
(XEN) Speculative mitigation facilities:
(XEN)   Hardware features: IBPB
(XEN)   Compiled-in support: INDIRECT_THUNK SHADOW_PAGING
(XEN)   Xen settings: BTI-Thunk LFENCE, SPEC_CTRL: No, Other: IBPB
(XEN)   Support for HVM VMs: RSB
(XEN)   Support for PV VMs: RSB
(XEN)   XPTI (64-bit PV only): Dom0 disabled, DomU disabled (without PCID)
(XEN)   PV L1TF shadowing: Dom0 disabled, DomU disabled
(XEN) Using scheduler: SMP Credit Scheduler rev2 (credit2)
(XEN) Initializing Credit2 scheduler
(XEN)  load_precision_shift: 18
(XEN)  load_window_shift: 30
(XEN)  underload_balance_tolerance: 0
(XEN)  overload_balance_tolerance: -3
(XEN)  runqueues arrangement: socket
(XEN)  cap enforcement granularity: 10ms
(XEN) load tracking window length 1073741824 ns
(XEN) Adding cpu 0 to runqueue 0
(XEN)  First cpu on runqueue, activating
(XEN) Platform timer is 100.000MHz HPET
(XEN) Detected 3593.230 MHz processor.
(XEN) Initing memory sharing.
(XEN) alt table ffff82d08042cc70 -> ffff82d08042ebc6
(XEN) AMD-Vi: IOMMU not found!
(XEN) I/O virtualisation disabled
(XEN) nr_sockets: 6
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1
(XEN) TSC deadline timer enabled
(XEN) Allocated console ring of 64 KiB.
(XEN) mwait-idle: does not run on family 23 model 113
(XEN) HVM: ASIDs enabled.
(XEN) SVM: Supported advanced features:
(XEN)  - Nested Page Tables (NPT)
(XEN)  - Next-RIP Saved on #VMEXIT
(XEN) HVM: SVM enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected
(XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB
(XEN) Adding cpu 1 to runqueue 1
(XEN)  First cpu on runqueue, activating
(XEN) Adding cpu 2 to runqueue 2
(XEN)  First cpu on runqueue, activating
(XEN) Adding cpu 3 to runqueue 3
(XEN)  First cpu on runqueue, activating
(XEN) Adding cpu 4 to runqueue 4
(XEN)  First cpu on runqueue, activating
(XEN) Adding cpu 5 to runqueue 5
(XEN)  First cpu on runqueue, activating
(XEN) Brought up 6 CPUs
(XEN) build-id: 8d962dce01fe66e2bbde719e57dc1de956cb4e85
(XEN) ACPI sleep modes: S3
(XEN) VPMU: disabled
(XEN) mcheck_poll: Machine check polling timer started.
(XEN) xenoprof: Initialization failed. AMD processor family 23 is not supported
(XEN) Dom0 has maximum 600 PIRQs
(XEN) NX (Execute Disable) protection active
(XEN) *** Building a PV Dom0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x302c000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000074000000->0000000078000000 (461421 pages to be allocated)
(XEN)  Init. ramdisk: 000000007dc5f000->000000007f7ff80d
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff8302c000
(XEN)  Init. ramdisk: 0000000000000000->0000000000000000
(XEN)  Phys-Mach map: 0000008000000000->00000080003b3070
(XEN)  Start info:    ffffffff8302c000->ffffffff8302c4b4
(XEN)  Xenstore ring: 0000000000000000->0000000000000000
(XEN)  Console ring:  0000000000000000->0000000000000000
(XEN)  Page tables:   ffffffff8302d000->ffffffff8304a000
(XEN)  Boot stack:    ffffffff8304a000->ffffffff8304b000
(XEN)  TOTAL:         ffffffff80000000->ffffffff83400000
(XEN)  ENTRY ADDRESS: ffffffff8296d180
(XEN) Dom0 has maximum 6 VCPUs
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Scrubbing Free RAM in background
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input)
(XEN) Freed 484kB init memory
(XEN) PCI add device 0000:00:00.0
(XEN) PCI add device 0000:00:01.0
(XEN) PCI add device 0000:00:01.1
(XEN) PCI add device 0000:00:01.2
(XEN) PCI add device 0000:00:01.3
(XEN) PCI add device 0000:00:02.0
(XEN) PCI add device 0000:00:03.0
(XEN) PCI add device 0000:00:04.0
(XEN) PCI add device 0000:00:05.0
(XEN) PCI add device 0000:00:06.0
(XEN) PCI add device 0000:00:07.0

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.