Skip to contentSkip to conversation

Testing status of fully virtualized guests (Intel VT) on 64bit XEN unstable

PATCH In review Ed Smith 3 participants 5 messages May 15, 2006 – May 26, 2006

lore
Share & tools
lore

Ed Smith

author
#0 lore raw

Summary: Changeset 9983 - no change from changeset 9981

Test Configuration:
Dell Precision WorkStation 380, Dual Core, 2GB, 3 SATA (Intel VT) 64bit XEN Hypervisor on a RHEL4U2 64bit root (/dev/sda) 32bit fully virtualized (HVM) guest RHEL4U2 256MB (/dev/sdb)

      pae=1, acpi=1, apic=1
      kernargs clock=pit

64bit fully virtualized (HVM) guest RHEL4U2 256MB (/dev/sdc)
pae=1, acpi=1, apic=1
kernargs clock=pit noapic

Boot Tests:
Boot a fully virtualized (HVM) guest to the login prompt Results are marked Pass|Fail where (n) points to a failure description

Regression Tests:
851 tests (850 ltp tests and one 30 minute user load test) Tests are marked #Pass/#Fail where (n) points to a failure description

XEN 64bit 1 CPU Hypervisor (booted nosmp):
----------------------------------------------------------------------

| XEN      | Guest Kernel (SMP kernels booted with 1 CPU)              |
| Changeset|-----------------------------------------------------------|
|          | 32bit UP     | 32bit SMP    | 64bit UP     | 64bit SMP    |
|          |--------------|--------------|--------------|--------------|
|          | Boot | Test  | Boot | Test  | Boot | Test  | Boot | Test  |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9983     | Pass | 850/1 | Fail |       | Pass |       | Pass | 851/0 |
|          | (2)  | (1)   | (7)  |       | (2)  |       | (2)  |       |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9981     | Pass | 850/1 | Fail |       | Pass |       | Pass | 851/0 |
|          | (2)  | (1)   | (7)  |       | (2)  |       | (2)  |       |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9972     | Pass | 850/1 | Fail |       | Pass |       | Pass | 851/0 |
|          | (2)  | (1)   | (7)  |       | (2)  |       | (2)  |       |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9960     | Pass | 850/1 | Fail |       | Pass |       | Pass | 851/0 |
|          | (2)  | (1)   | (7)  |       | (2)  |       | (2)  |       |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9925     | Pass | 850/1 | Fail |       | Pass |       | Pass | 851/0 |
|          | (2)  | (1)   | (3)  |       | (2)  |       | (2)  |       |

----------------------------------------------------------------------

XEN 64bit 2 CPU Hypervisor (booted smp):
----------------------------------------------------------------------

| XEN      | Guest Kernel (SMP kernels booted with 2 CPUs)             |
| Changeset|-----------------------------------------------------------|
|          | 32bit UP     | 32bit SMP    | 64bit UP     | 64bit SMP    |
|          |--------------|--------------|--------------|--------------|
|          | Boot | Test  | Boot | Test  | Boot | Test  | Boot | Test  |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9983     | Pass |       | Fail |       | Pass |       | Pass | Fail  |
|          | (2)  |       | (7)  |       | (2)  |       | (5,6)| (4)   |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9981     | Pass |       | Fail |       | Pass |       | Pass | Fail  |
|          | (2)  |       | (7)  |       | (2)  |       | (5,6)| (4)   |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9972     | Pass |       | Fail |       | Pass |       | Pass | Fail  |
|          | (2)  |       | (7)  |       | (2)  |       | (5,6)| (4)   |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9960     | Pass |       | Fail |       | Pass |       | Pass | Fail  |
|          | (2)  |       | (7)  |       | (2)  |       | (5,6)| (4)   |
|----------|------|-------|------|-------|------|-------|------|-------|
| 9925     | Pass |       | Fail |       | Pass |       | Pass | Fail  |
|          | (2)  |       | (3)  |       | (2)  |       | (5,6)| (4)   |

----------------------------------------------------------------------

Failures:
1. 32bit UP guest fail ltp gettimeofday02:
"Time is going backwards"
2. 32bit and 64bit guests fail first boot attempt after booting XEN:
"(XEN) Failed vm entry, domain_crash_sync called from vmx.c"
3. 32bit SMP guest hangs on boot:
"Uncompressing Linux... Ok, booting the kernel."
4. 64bit SMP guest fails testing:
Guest hangs under load.
5. 64bit SMP guest report these messages the XEN console:
"(XEN) spurious IRQ irq got=-1"
6. 64bit SMP guest report these messages the XEN console during testing:
"(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252"
7. 32bit SMP guest crashes on boot:
"(XEN) __hvm_bug at vmx.c:2286"

File: boot.2

Red Hat Enterprise Linux ES release 4 (Nahant Update 2) Kernel 2.6.16.13-xen on an x86_64

Bridge firewalling registered
ip_tables: (C) 2000-2006 Netfilter Core Team
ip_tables: (C) 2000-2006 Netfilter Core Team

tst110 login: root
[root@tst110 ~]# xm info
host : tst110
release : 2.6.16.13-xen
version : #1 SMP Fri May 12 01:45:32 EDT 2006
machine : x86_64
nr_cpus : 1
nr_nodes : 1
sockets_per_node : 1
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 2793
hw_caps : bfebfbff:20100800:00000000:00000180:0000e43d:00000000:00000001
total_memory : 1023
free_memory : 209
xen_major : 3
xen_minor : 0
xen_extra : -unstable
xen_caps : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
platform_params : virt_start=0xffff800000000000
xen_changeset : Wed May 10 17:30:42 2006 +0100 9972:91c77df11b43
cc_compiler : gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
cc_compile_by : build
cc_compile_domain : katana-technology.com
cc_compile_date : Fri May 12 00:48:20 EDT 2006

(XEN) Failed vm entry
(XEN) domain_crash_sync called from vmx.c:2086
(XEN) Domain 1 (vcpu#0) crashed on cpu#0:
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: 0010:[<0000000000100000>]
(XEN) RFLAGS: 0000000000000002 CONTEXT: hvm

(XEN) rax: 0000000000000000   rbx: 0000000000000000   rcx: 0000000000000000
(XEN) rdx: 0000000000000000   rsi: 0000000000000000   rdi: 0000000000000000
(XEN) rbp: 0000000000000000   rsp: 0000000000000000   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 000000000005003b   cr3: 0000000000000000

(XEN) ds: 0008 es: 0008 fs: 0008 gs: 0008 ss: 0008 cs: 0010
(XEN) (GUEST: 2) HVM Loader
(XEN) (GUEST: 2) Loading ROMBIOS ...
(XEN) (GUEST: 2) Loading Cirrus VGABIOS ...
(XEN) (GUEST: 2) Loading ACPI ...
(XEN) (GUEST: 2) Loading VMXAssist ...
(XEN) (GUEST: 2) VMX go ...
(XEN) (GUEST: 2) VMXAssist (May 12 2006)
(XEN) (GUEST: 2) Memory size 256 MB
(XEN) (GUEST: 2) E820 map:
(XEN) (GUEST: 2) 0000000000000000 - 000000000009F800 (RAM)
(XEN) (GUEST: 2) 000000000009F800 - 00000000000A0000 (Reserved)
(XEN) (GUEST: 2) 00000000000A0000 - 00000000000C0000 (Type 16)
(XEN) (GUEST: 2) 00000000000F0000 - 0000000000100000 (Reserved)
(XEN) (GUEST: 2) 0000000000100000 - 000000000FFFE000 (RAM)
(XEN) (GUEST: 2) 000000000FFFE000 - 000000000FFFF000 (Type 18)
(XEN) (GUEST: 2) 000000000FFFF000 - 0000000010000000 (Type 17)
(XEN) (GUEST: 2) 0000000010000000 - 0000000010003000 (ACPI NVS)
(XEN) (GUEST: 2) 0000000010003000 - 000000001000D000 (ACPI Data)
(XEN) (GUEST: 2) 00000000FEC00000 - 0000000100000000 (Type 16)
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Start BIOS ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=F000:FFF0
(XEN) (GUEST: 2) rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $ (XEN) (GUEST: 2) Remapping master: ICW2 0x8 -> 0x20
(XEN) (GUEST: 2) Remapping slave: ICW2 0x70 -> 0x28
(XEN) (GUEST: 2) VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert Exp $ (XEN) (GUEST: 2) HVMAssist BIOS, 8 cpus, $Revision: 1.138 $ $Date: 2005/05/07 15:55:26 $ (XEN) (GUEST: 2)
(XEN) (GUEST: 2) ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 (XEN) (GUEST: 2) ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (10757 MBytes) (XEN) (GUEST: 2) ata0 slave: Unknown device
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Booting from Hard Disk...
(XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 08, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=00C0, BX=0000 not yet supported! (XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) KBD: unsupported int 16h function 03
(XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=E980, BX=E6F5 not yet supported! (XEN) (GUEST: 2) int13_harddisk: function 02, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81

File: boot.3

[root@tst177 ~]# xm info
host : tst177.katana-technology.com
release : 2.6.16-xen
version : #1 SMP Wed Apr 26 01:42:49 EDT 2006
machine : x86_64
nr_cpus : 2
nr_nodes : 1
sockets_per_node : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2793
hw_caps : bfebfbff:20100800:00000000:00000180:0000e43d:00000000:00000001
total_memory : 2047
free_memory : 131
xen_major : 3
xen_minor : 0
xen_extra : -unstable
xen_caps : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
platform_params : virt_start=0xffff800000000000
xen_changeset : Tue Apr 25 13:22:11 2006 +0100 9744:1ad06bd6832d
cc_compiler : gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
cc_compile_by : build
cc_compile_domain : katana-technology.com
cc_compile_date : Wed Apr 26 00:47:38 EDT 2006
[root@tst177 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 1877 2 r----- 36.5
(XEN) (GUEST: 3) Loading ROMBIOS ...
(XEN) (GUEST: 3) Loading Cirrus VGABIOS ...
(XEN) (GUEST: 3) Loading ACPI ...
(XEN) (GUEST: 3) Loading VMXAssist ...
(XEN) (GUEST: 3) VMX go ...
(XEN) (GUEST: 3) VMXAssist (Apr 26 2006)
(XEN) (GUEST: 3) Memory size 256 MB
(XEN) (GUEST: 3) E820 map:
(XEN) (GUEST: 3) 0000000000000000 - 000000000009F800 (RAM)
(XEN) (GUEST: 3) 000000000009F800 - 00000000000A0000 (Reserved)
(XEN) (GUEST: 3) 00000000000A0000 - 00000000000C0000 (Type 16)
(XEN) (GUEST: 3) 00000000000F0000 - 0000000000100000 (Reserved)
(XEN) (GUEST: 3) 0000000000100000 - 000000000FFFE000 (RAM)
(XEN) (GUEST: 3) 000000000FFFE000 - 000000000FFFF000 (Type 18)
(XEN) (GUEST: 3) 000000000FFFF000 - 0000000010000000 (Type 17)
(XEN) (GUEST: 3) 0000000010000000 - 0000000010003000 (ACPI NVS)
(XEN) (GUEST: 3) 0000000010003000 - 000000001000D000 (ACPI Data)
(XEN) (GUEST: 3) 00000000FEC00000 - 0000000100000000 (Type 16)
(XEN) (GUEST: 3)
(XEN) (GUEST: 3) Start BIOS ...
(XEN) (GUEST: 3) Starting emulated 16-bit real-mode: ip=F000:FFF0
(XEN) (GUEST: 3) rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $ (XEN) (GUEST: 3) Remapping master: ICW2 0x8 -> 0x20
(XEN) (GUEST: 3) Remapping slave: ICW2 0x70 -> 0x28
(XEN) (GUEST: 3) VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert Exp $ (XEN) (GUEST: 3) HVMAssist BIOS, 8 cpus, $Revision: 1.138 $ $Date: 2005/05/07 15:55:26 $ (XEN) (GUEST: 3)
(XEN) (GUEST: 3) ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 (XEN) (GUEST: 3) ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (12997 MBytes) (XEN) (GUEST: 3) ata0 slave: Unknown device
(XEN) (GUEST: 3)
(XEN) (GUEST: 3) Booting from Hard Disk...
(XEN) (GUEST: 3) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) (GUEST: 3) int13_harddisk: function 08, unmapped device for ELDL=81 (XEN) (GUEST: 3) *** int 15h function AX=00C0, BX=0000 not yet supported! (XEN) (GUEST: 3) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 3) KBD: unsupported int 16h function 03
(XEN) (GUEST: 3) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 3) *** int 15h function AX=E980, BX=E6F5 not yet supported! (XEN) (GUEST: 3) int13_harddisk: function 02, unmapped device for ELDL=81 (XEN) (GUEST: 3) int13_harddisk: function 41, unmapped device for ELDL=81

32bit SMP guest has hung at this point. Last message on the guest console:

Uncompressing Linux... Ok, booting the kernel.

File: boot.5

Red Hat Enterprise Linux ES release 4 (Nahant Update 2) Kernel 2.6.16.13-xen on an x86_64

tst177 login: root
Password:
Last login: Fri May 12 10:16:55 on ttyS0
You have new mail.
[root@tst177 ~]# /etc/init.d/xend start
Bridge firewalling registered
ip_tables: (C) 2000-2006 Netfilter Core Team [root@tst177 ~]# xm info
host : tst177
release : 2.6.16.13-xen
version : #1 SMP Fri May 12 01:45:32 EDT 2006
machine : x86_64
nr_cpus : 2
nr_nodes : 1
sockets_per_node : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2793
hw_caps : bfebfbff:20100800:00000000:00000180:0000e43d:00000000:00000001
total_memory : 2047
free_memory : 131
xen_major : 3
xen_minor : 0
xen_extra : -unstable
xen_caps : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
platform_params : virt_start=0xffff800000000000
xen_changeset : Wed May 10 17:30:42 2006 +0100 9972:91c77df11b43
cc_compiler : gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
cc_compile_by : build
cc_compile_domain : katana-technology.com
cc_compile_date : Fri May 12 00:48:20 EDT 2006
[root@tst177 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 1877 2 r----- 35.4
[root@tst177 ~]# ip_tables: (C) 2000-2006 Netfilter Core Team (XEN) Failed vm entry
(XEN) domain_crash_sync called from vmx.c:2086 (XEN) Domain 1 (vcpu#0) crashed on cpu#1:
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 1
(XEN) RIP: 0010:[<0000000000100000>]
(XEN) RFLAGS: 0000000000000002 CONTEXT: hvm

(XEN) rax: 0000000000000000   rbx: 0000000000000000   rcx: 0000000000000000
(XEN) rdx: 0000000000000000   rsi: 0000000000000000   rdi: 0000000000000000
(XEN) rbp: 0000000000000000   rsp: 0000000000000000   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 000000000005003b   cr3: 0000000000000000

(XEN) ds: 0008 es: 0008 fs: 0008 gs: 0008 ss: 0008 cs: 0010
(XEN) (GUEST: 2) HVM Loader
(XEN) (GUEST: 2) Loading ROMBIOS ...
(XEN) (GUEST: 2) Loading Cirrus VGABIOS ...
(XEN) (GUEST: 2) Loading ACPI ...
(XEN) (GUEST: 2) Loading VMXAssist ...
(XEN) (GUEST: 2) VMX go ...
(XEN) (GUEST: 2) VMXAssist (May 12 2006)
(XEN) (GUEST: 2) Memory size 256 MB
(XEN) (GUEST: 2) E820 map:
(XEN) (GUEST: 2) 0000000000000000 - 000000000009F800 (RAM)
(XEN) (GUEST: 2) 000000000009F800 - 00000000000A0000 (Reserved)
(XEN) (GUEST: 2) 00000000000A0000 - 00000000000C0000 (Type 16)
(XEN) (GUEST: 2) 00000000000F0000 - 0000000000100000 (Reserved)
(XEN) (GUEST: 2) 0000000000100000 - 000000000FFFE000 (RAM)
(XEN) (GUEST: 2) 000000000FFFE000 - 000000000FFFF000 (Type 18)
(XEN) (GUEST: 2) 000000000FFFF000 - 0000000010000000 (Type 17)
(XEN) (GUEST: 2) 0000000010000000 - 0000000010003000 (ACPI NVS)
(XEN) (GUEST: 2) 0000000010003000 - 000000001000D000 (ACPI Data)
(XEN) (GUEST: 2) 00000000FEC00000 - 0000000100000000 (Type 16)
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Start BIOS ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=F000:FFF0
(XEN) (GUEST: 2) rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $ (XEN) (GUEST: 2) Remapping master: ICW2 0x8 -> 0x20
(XEN) (GUEST: 2) Remapping slave: ICW2 0x70 -> 0x28
(XEN) (GUEST: 2) VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert Exp $ (XEN) (GUEST: 2) HVMAssist BIOS, 8 cpus, $Revision: 1.138 $ $Date: 2005/05/07 15:55:26 $ (XEN) (GUEST: 2)
(XEN) (GUEST: 2) ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 (XEN) (GUEST: 2) ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (12997 MBytes) (XEN) (GUEST: 2) ata0 slave: Unknown device
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Booting from Hard Disk...
(XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 08, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=00C0, BX=0000 not yet supported! (XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=EC00, BX=0002 not yet supported! (XEN) (GUEST: 2) KBD: unsupported int 16h function 03
(XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 02, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) Local APIC Write to read-only register
(XEN) This hvm_vlapic is for P4, no work for De-assert init
(XEN) AP 1 bringup suceeded.
(XEN) (GUEST: 2) Start AP 1 from 00006000 ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=0600:0000
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252

File: boot.7

Red Hat Enterprise Linux ES release 4 (Nahant Update 2) Kernel 2.6.16.13-xen on an x86_64

tst177 login: root
Password:
Last login: Fri May 12 09:35:45 from 10.1.2.13
You have new mail.
[root@tst177 ~]# /etc/init.d/xend start
Bridge firewalling registered
ip_tables: (C) 2000-2006 Netfilter Core Team [root@tst177 ~]# xm info
host : tst177
release : 2.6.16.13-xen
version : #1 SMP Fri May 12 01:45:32 EDT 2006
machine : x86_64
nr_cpus : 1
nr_nodes : 1
sockets_per_node : 1
cores_per_socket : 1
threads_per_core : 1
cpu_mhz : 2793
hw_caps : bfebfbff:20100800:00000000:00000180:0000e43d:00000000:00000001
total_memory : 2047
free_memory : 131
xen_major : 3
xen_minor : 0
xen_extra : -unstable
xen_caps : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
platform_params : virt_start=0xffff800000000000
xen_changeset : Wed May 10 17:30:42 2006 +0100 9972:91c77df11b43
cc_compiler : gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
cc_compile_by : build
cc_compile_domain : katana-technology.com
cc_compile_date : Fri May 12 00:48:20 EDT 2006
[root@tst177 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 1877 1 r----- 32.6
[root@tst177 ~]# ip_tables: (C) 2000-2006 Netfilter Core Team (XEN) Failed vm entry
(XEN) domain_crash_sync called from vmx.c:2086 (XEN) Domain 1 (vcpu#0) crashed on cpu#0:
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: 0010:[<0000000000100000>]
(XEN) RFLAGS: 0000000000000002 CONTEXT: hvm

(XEN) rax: 0000000000000000   rbx: 0000000000000000   rcx: 0000000000000000
(XEN) rdx: 0000000000000000   rsi: 0000000000000000   rdi: 0000000000000000
(XEN) rbp: 0000000000000000   rsp: 0000000000000000   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 000000000005003b   cr3: 0000000000000000

(XEN) ds: 0008 es: 0008 fs: 0008 gs: 0008 ss: 0008 cs: 0010
(XEN) (GUEST: 2) HVM Loader
(XEN) (GUEST: 2) Loading ROMBIOS ...
(XEN) (GUEST: 2) Loading Cirrus VGABIOS ...
(XEN) (GUEST: 2) Loading ACPI ...
(XEN) (GUEST: 2) Loading VMXAssist ...
(XEN) (GUEST: 2) VMX go ...
(XEN) (GUEST: 2) VMXAssist (May 12 2006)
(XEN) (GUEST: 2) Memory size 256 MB
(XEN) (GUEST: 2) E820 map:
(XEN) (GUEST: 2) 0000000000000000 - 000000000009F800 (RAM)
(XEN) (GUEST: 2) 000000000009F800 - 00000000000A0000 (Reserved)
(XEN) (GUEST: 2) 00000000000A0000 - 00000000000C0000 (Type 16)
(XEN) (GUEST: 2) 00000000000F0000 - 0000000000100000 (Reserved)
(XEN) (GUEST: 2) 0000000000100000 - 000000000FFFE000 (RAM)
(XEN) (GUEST: 2) 000000000FFFE000 - 000000000FFFF000 (Type 18)
(XEN) (GUEST: 2) 000000000FFFF000 - 0000000010000000 (Type 17)
(XEN) (GUEST: 2) 0000000010000000 - 0000000010003000 (ACPI NVS)
(XEN) (GUEST: 2) 0000000010003000 - 000000001000D000 (ACPI Data)
(XEN) (GUEST: 2) 00000000FEC00000 - 0000000100000000 (Type 16)
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Start BIOS ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=F000:FFF0
(XEN) (GUEST: 2) rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $ (XEN) (GUEST: 2) Remapping master: ICW2 0x8 -> 0x20
(XEN) (GUEST: 2) Remapping slave: ICW2 0x70 -> 0x28
(XEN) (GUEST: 2) VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert Exp $ (XEN) (GUEST: 2) HVMAssist BIOS, 8 cpus, $Revision: 1.138 $ $Date: 2005/05/07 15:55:26 $ (XEN) (GUEST: 2)
(XEN) (GUEST: 2) ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 (XEN) (GUEST: 2) ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (12997 MBytes) (XEN) (GUEST: 2) ata0 slave: Unknown device
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Booting from Hard Disk...
(XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 08, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=00C0, BX=0000 not yet supported! (XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) KBD: unsupported int 16h function 03
(XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=E980, BX=E6F5 not yet supported! (XEN) (GUEST: 2) int13_harddisk: function 02, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) __hvm_bug at vmx.c:2286
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: 0060:[<00000000c0100264>]
(XEN) RFLAGS: 0000000000010006 CONTEXT: hvm

(XEN) rax: 0000000000000671   rbx: 00000000c038fff0   rcx: 0000000000000003
(XEN) rdx: 0000000000000fc0   rsi: 000000000000fffe   rdi: 00000000c040736c
(XEN) rbp: 000000000048c007   rsp: 00000000c031c058   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 0000000080050033   cr3: 0000000001775000

(XEN) ds: 007b es: 007b fs: 0000 gs: 0000 ss: 0068 cs: 0060
(XEN) domain_crash_sync called from vmx.c:2286
(XEN) Domain 2 (vcpu#0) crashed on cpu#0:
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: 0060:[<00000000c0100264>]
(XEN) RFLAGS: 0000000000010006 CONTEXT: hvm

(XEN) rax: 0000000000000671   rbx: 00000000c038fff0   rcx: 0000000000000003
(XEN) rdx: 0000000000000fc0   rsi: 000000000000fffe   rdi: 00000000c040736c
(XEN) rbp: 000000000048c007   rsp: 00000000c031c058   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 0000000080050033   cr3: 0000000001775000

(XEN) ds: 007b es: 007b fs: 0000 gs: 0000 ss: 0068 cs: 0060

[root@tst177 ~]#

File: regression.1

Time Level Message
05:00:50 INFO Reporting status: 'Test Running' for test: ltp_gettimeofday02
05:00:52 INFO Preparing to run test 'ltp_gettimeofday02' using profile: /qa/conductor/profiles/ltp/syscalls/gettimeofday02.xml
05:00:52 INFO Starting test 'ltp_gettimeofday02' using profile: /qa/conductor/profiles/ltp/syscalls/gettimeofday02.xml
05:00:52 INFO Dispatching operation: RemoteShell
05:00:52 FINE Client sequencer got message requesting the start of a new test: ltp_gettimeofday02
05:00:52 FINER Client sequencer sent message of type: 4 with seq num: 1 of size: 289 bytes
05:00:52 FINER Client sequencer handling new operation from control sequencer
05:00:52 FINE Client sequencer looking for class: com.katana.conductor.operations.RemoteShell
05:00:52 INFO Operation RemoteShell running
05:00:52 FINE Client sequencer was told that an operation is now running
05:00:52 INFO RemoteShell: target node(s) = vs177
05:00:52 INFO ssh: /usr/bin/ssh root@vs177 cd /qa/conductor/tests/ltp/testcases/bin; gettimeofday02
05:00:52 FINE ssh: waiting for command to finish
05:00:53 INFO ssh: gettimeofday02 0 INFO : checking if gettimeofday is monotonous, takes 30s
05:00:53 INFO ssh: gettimeofday02 1 FAIL : Time is going backwards (old 1145696453.61428 vs new 1145696453.60660!
05:00:53 FINE executeShellCmd(ssh): exit value is 1
05:00:53 SEVERE RemoteShell: command failed with error = 1
05:00:53 SEVERE Operation RemoteShell failed
05:00:53 SEVERE Reporting status: 'Test Failed' for test: ltp_gettimeofday02
05:00:53 FINE Client sequencer detected operation completed with status of: Fail
05:00:53 FINER Client sequencer sent message of type: 5 with seq num: 2 of size: 429 bytes
05:00:53 SEVERE Crash Collection disabled for queue : RHEL4U2-32b-XEN
05:00:53 INFO Cleaning up after test

File: regression.4

Red Hat Enterprise Linux ES release 4 (Nahant Update 2) Kernel 2.6.16.13-xen on an x86_64

tst177 login: root
Password:
Last login: Fri May 12 10:16:55 on ttyS0
You have new mail.
[root@tst177 ~]# /etc/init.d/xend start
Bridge firewalling registered
ip_tables: (C) 2000-2006 Netfilter Core Team [root@tst177 ~]# xm info
host : tst177
release : 2.6.16.13-xen
version : #1 SMP Fri May 12 01:45:32 EDT 2006
machine : x86_64
nr_cpus : 2
nr_nodes : 1
sockets_per_node : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2793
hw_caps : bfebfbff:20100800:00000000:00000180:0000e43d:00000000:00000001
total_memory : 2047
free_memory : 131
xen_major : 3
xen_minor : 0
xen_extra : -unstable
xen_caps : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
platform_params : virt_start=0xffff800000000000
xen_changeset : Wed May 10 17:30:42 2006 +0100 9972:91c77df11b43
cc_compiler : gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
cc_compile_by : build
cc_compile_domain : katana-technology.com
cc_compile_date : Fri May 12 00:48:20 EDT 2006
[root@tst177 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 1877 2 r----- 35.4
[root@tst177 ~]# ip_tables: (C) 2000-2006 Netfilter Core Team (XEN) Failed vm entry
(XEN) domain_crash_sync called from vmx.c:2086 (XEN) Domain 1 (vcpu#0) crashed on cpu#1:
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 1
(XEN) RIP: 0010:[<0000000000100000>]
(XEN) RFLAGS: 0000000000000002 CONTEXT: hvm

(XEN) rax: 0000000000000000   rbx: 0000000000000000   rcx: 0000000000000000
(XEN) rdx: 0000000000000000   rsi: 0000000000000000   rdi: 0000000000000000
(XEN) rbp: 0000000000000000   rsp: 0000000000000000   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 000000000005003b   cr3: 0000000000000000

(XEN) ds: 0008 es: 0008 fs: 0008 gs: 0008 ss: 0008 cs: 0010
(XEN) (GUEST: 2) HVM Loader
(XEN) (GUEST: 2) Loading ROMBIOS ...
(XEN) (GUEST: 2) Loading Cirrus VGABIOS ...
(XEN) (GUEST: 2) Loading ACPI ...
(XEN) (GUEST: 2) Loading VMXAssist ...
(XEN) (GUEST: 2) VMX go ...
(XEN) (GUEST: 2) VMXAssist (May 12 2006)
(XEN) (GUEST: 2) Memory size 256 MB
(XEN) (GUEST: 2) E820 map:
(XEN) (GUEST: 2) 0000000000000000 - 000000000009F800 (RAM)
(XEN) (GUEST: 2) 000000000009F800 - 00000000000A0000 (Reserved)
(XEN) (GUEST: 2) 00000000000A0000 - 00000000000C0000 (Type 16)
(XEN) (GUEST: 2) 00000000000F0000 - 0000000000100000 (Reserved)
(XEN) (GUEST: 2) 0000000000100000 - 000000000FFFE000 (RAM)
(XEN) (GUEST: 2) 000000000FFFE000 - 000000000FFFF000 (Type 18)
(XEN) (GUEST: 2) 000000000FFFF000 - 0000000010000000 (Type 17)
(XEN) (GUEST: 2) 0000000010000000 - 0000000010003000 (ACPI NVS)
(XEN) (GUEST: 2) 0000000010003000 - 000000001000D000 (ACPI Data)
(XEN) (GUEST: 2) 00000000FEC00000 - 0000000100000000 (Type 16)
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Start BIOS ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=F000:FFF0
(XEN) (GUEST: 2) rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $ (XEN) (GUEST: 2) Remapping master: ICW2 0x8 -> 0x20
(XEN) (GUEST: 2) Remapping slave: ICW2 0x70 -> 0x28
(XEN) (GUEST: 2) VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert Exp $ (XEN) (GUEST: 2) HVMAssist BIOS, 8 cpus, $Revision: 1.138 $ $Date: 2005/05/07 15:55:26 $ (XEN) (GUEST: 2)
(XEN) (GUEST: 2) ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 (XEN) (GUEST: 2) ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (12997 MBytes) (XEN) (GUEST: 2) ata0 slave: Unknown device
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Booting from Hard Disk...
(XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 08, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=00C0, BX=0000 not yet supported! (XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=EC00, BX=0002 not yet supported! (XEN) (GUEST: 2) KBD: unsupported int 16h function 03
(XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 02, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) Local APIC Write to read-only register
(XEN) This hvm_vlapic is for P4, no work for De-assert init
(XEN) AP 1 bringup suceeded.
(XEN) (GUEST: 2) Start AP 1 from 00006000 ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=0600:0000
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1

Guest is hung at this point

File: regression.6

Red Hat Enterprise Linux ES release 4 (Nahant Update 2) Kernel 2.6.16.13-xen on an x86_64

tst177 login: root
Password:
Last login: Fri May 12 10:16:55 on ttyS0
You have new mail.
[root@tst177 ~]# /etc/init.d/xend start
Bridge firewalling registered
ip_tables: (C) 2000-2006 Netfilter Core Team [root@tst177 ~]# xm info
host : tst177
release : 2.6.16.13-xen
version : #1 SMP Fri May 12 01:45:32 EDT 2006
machine : x86_64
nr_cpus : 2
nr_nodes : 1
sockets_per_node : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2793
hw_caps : bfebfbff:20100800:00000000:00000180:0000e43d:00000000:00000001
total_memory : 2047
free_memory : 131
xen_major : 3
xen_minor : 0
xen_extra : -unstable
xen_caps : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
platform_params : virt_start=0xffff800000000000
xen_changeset : Wed May 10 17:30:42 2006 +0100 9972:91c77df11b43
cc_compiler : gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
cc_compile_by : build
cc_compile_domain : katana-technology.com
cc_compile_date : Fri May 12 00:48:20 EDT 2006
[root@tst177 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 1877 2 r----- 35.4
[root@tst177 ~]# ip_tables: (C) 2000-2006 Netfilter Core Team (XEN) Failed vm entry
(XEN) domain_crash_sync called from vmx.c:2086 (XEN) Domain 1 (vcpu#0) crashed on cpu#1:
(XEN) ----[ Xen-3.0-unstable Not tainted ]----
(XEN) CPU: 1
(XEN) RIP: 0010:[<0000000000100000>]
(XEN) RFLAGS: 0000000000000002 CONTEXT: hvm

(XEN) rax: 0000000000000000   rbx: 0000000000000000   rcx: 0000000000000000
(XEN) rdx: 0000000000000000   rsi: 0000000000000000   rdi: 0000000000000000
(XEN) rbp: 0000000000000000   rsp: 0000000000000000   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 000000000005003b   cr3: 0000000000000000

(XEN) ds: 0008 es: 0008 fs: 0008 gs: 0008 ss: 0008 cs: 0010
(XEN) (GUEST: 2) HVM Loader
(XEN) (GUEST: 2) Loading ROMBIOS ...
(XEN) (GUEST: 2) Loading Cirrus VGABIOS ...
(XEN) (GUEST: 2) Loading ACPI ...
(XEN) (GUEST: 2) Loading VMXAssist ...
(XEN) (GUEST: 2) VMX go ...
(XEN) (GUEST: 2) VMXAssist (May 12 2006)
(XEN) (GUEST: 2) Memory size 256 MB
(XEN) (GUEST: 2) E820 map:
(XEN) (GUEST: 2) 0000000000000000 - 000000000009F800 (RAM)
(XEN) (GUEST: 2) 000000000009F800 - 00000000000A0000 (Reserved)
(XEN) (GUEST: 2) 00000000000A0000 - 00000000000C0000 (Type 16)
(XEN) (GUEST: 2) 00000000000F0000 - 0000000000100000 (Reserved)
(XEN) (GUEST: 2) 0000000000100000 - 000000000FFFE000 (RAM)
(XEN) (GUEST: 2) 000000000FFFE000 - 000000000FFFF000 (Type 18)
(XEN) (GUEST: 2) 000000000FFFF000 - 0000000010000000 (Type 17)
(XEN) (GUEST: 2) 0000000010000000 - 0000000010003000 (ACPI NVS)
(XEN) (GUEST: 2) 0000000010003000 - 000000001000D000 (ACPI Data)
(XEN) (GUEST: 2) 00000000FEC00000 - 0000000100000000 (Type 16)
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Start BIOS ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=F000:FFF0
(XEN) (GUEST: 2) rombios.c,v 1.138 2005/05/07 15:55:26 vruppert Exp $ (XEN) (GUEST: 2) Remapping master: ICW2 0x8 -> 0x20
(XEN) (GUEST: 2) Remapping slave: ICW2 0x70 -> 0x28
(XEN) (GUEST: 2) VGABios $Id: vgabios.c,v 1.61 2005/05/24 16:50:50 vruppert Exp $ (XEN) (GUEST: 2) HVMAssist BIOS, 8 cpus, $Revision: 1.138 $ $Date: 2005/05/07 15:55:26 $ (XEN) (GUEST: 2)
(XEN) (GUEST: 2) ata0-0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 (XEN) (GUEST: 2) ata0 master: QEMU HARDDISK ATA-2 Hard-Disk (12997 MBytes) (XEN) (GUEST: 2) ata0 slave: Unknown device
(XEN) (GUEST: 2)
(XEN) (GUEST: 2) Booting from Hard Disk...
(XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 08, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=00C0, BX=0000 not yet supported! (XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) *** int 15h function AX=EC00, BX=0002 not yet supported! (XEN) (GUEST: 2) KBD: unsupported int 16h function 03
(XEN) (GUEST: 2) int13_harddisk: function 15, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 02, unmapped device for ELDL=81 (XEN) (GUEST: 2) int13_harddisk: function 41, unmapped device for ELDL=81 (XEN) Local APIC Write to read-only register
(XEN) This hvm_vlapic is for P4, no work for De-assert init
(XEN) AP 1 bringup suceeded.
(XEN) (GUEST: 2) Start AP 1 from 00006000 ...
(XEN) (GUEST: 2) Starting emulated 16-bit real-mode: ip=0600:0000
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) spurious IRQ irq got=-1
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252
(XEN) <vlapic_accept_irq>level trig mode repeatedly for vector 252

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

PATCH 1/1 opps in blockback when missing media

Hello,
I've created a patch to prevent an oops in Dom0 that occurs when a CD device, specified as one of the 'hardrives' in the 'disk=' line of a para-virtualized guest's def file, has no media when the guest is started.

The oops occurs in vbd.c when vbd_size() is called from connect() (in xenbus.c) and the vbd pointer is really an error code that comes from the failed open that occurred in vbd_create().

This patch applies to changeset 9993

signed off by Ross Maxfield <[email protected]>

--- a/linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c Mon May 15
16:32:09 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c Mon May 15
11:49:39 2006 -0600
@@ -66,9 +66,10 @@ int vbd_create(blkif_t *blkif, blkif_vde

        vbd->bdev = open_by_devnum(
                vbd->pdevice,
                vbd->readonly ? FMODE_READ : FMODE_WRITE);
+
        if (IS_ERR(vbd->bdev)) {

- DPRINTK("vbd_creat: device %08x doesn't exist.\n",
- vbd->pdevice);
+ DPRINTK("vbd_creat: device %08x could not be
opened.\n",

+               vbd->bdev = NULL;
                return -ENOENT;
        }

diff -r dc213d745642 linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c --- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Mon May 15 16:32:09 2006 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Mon May 15 11:49:39 2006 -0600
@@ -305,6 +305,9 @@ static void connect(struct backend_info

        DPRINTK("%s", dev->otherend);

+ if (be->blkif->vbd.bdev == NULL)
+ return;
+

        /* Supply the information about the device the frontend needs
*/
 again:
        err = xenbus_transaction_start(&xbt);
linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c +3 -2
diff -r dc213d745642 linux-2.6-xen-sparse/drivers/xen/blkback/vbd.c
@@ -66,9 +66,10 @@ int vbd_create(blkif_t *blkif, blkif_vde
 	vbd->bdev = open_by_devnum(
 		vbd->pdevice,
 		vbd->readonly ? FMODE_READ : FMODE_WRITE);
+
 	if (IS_ERR(vbd->bdev)) {
-		DPRINTK("vbd_creat: device %08x doesn't exist.\n",
-			vbd->pdevice);
+		DPRINTK("vbd_creat: device %08x could not be opened.\n",
+		vbd->bdev = NULL;
 		return -ENOENT;
 	}
 
linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c +3 -0
diff -r dc213d745642 linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c
@@ -305,6 +305,9 @@ static void connect(struct backend_info 
 
 	DPRINTK("%s", dev->otherend);
 
+        if (be->blkif->vbd.bdev == NULL)
+               return;
+
 	/* Supply the information about the device the frontend needs */
 again:
 	err = xenbus_transaction_start(&xbt);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

Re: [PATCH] opps in blockback when missing media

Quoted 8 lines · Ross Maxfield

I've created a patch to prevent an oops in Dom0 that occurs when a CD device, specified as one of the 'hardrives' in the 'disk=' line of a para-virtualized guest's def file, has no media when the guest is started.

The oops occurs in vbd.c when vbd_size() is called from connect() (in xenbus.c) and the vbd pointer is really an error code that comes from the failed open that occurred in vbd_create().

The first hunk is missing a line so it doesn't build, and the second hunk is not needed since there's a NULL check in the caller of connect(). I've fixed up and applied.

-- Keir

#3 lore raw

RFC PATCH 1/1 Sharing removable media patch

In reply to Ross Maxfield

Attached is a patch that I created to make HVM virtual cdroms behave more like their physical counterparts.

Problem: When cd media is ejected, and worse, replaced, the guest is not made aware until the you enter the qemu monitor and type 'change <device> <name>'. This 'change' command must also be done for each guest that has access to the media, i.e., has the 'cdrom =' line its config file. When a guest is not made aware of media changes then the guest continues on the assumption that all is well returns previously cached data for media not present, or worse, reads non-cached from the new media believing that it is still the previous media.

Recognizing that the patch is large I will spend a moment explaining the theory of operations. The objective was to get each guest to be aware of media ejects and inerts regardless from which domain the event occurred, including Dom0.

The foundation for this work is the creation of a very small amount of memory shared between all guests. This shared memory contains a list of shared removable media devices, as defined by the 'cdrom=' line that may exist is each guest's config file. There is one entry in this shared memory for each unique device name. Accompanying the device name is media instance number. This instance number is incremented each time media is ejected from any guest.

The current value of the instance number is stored in the BlockDriverState structure when a guest is initialized. This instance number kept by the guest is compared against the value in the shared memory in the TEST_UNIT_READY routine and the cdrom read routine found in qemu's ide.c. If the values are not equal then is is assumed that the media has been ejected by another guest and a ASC_MEDIA_CHANGED error is returned to each quest's routine that is polling for removable media device status. If polling is not employed by the guest then the media changed notification will occur on the next IO request and the guest OS will respond appropriately.

In addition to comparing the guest's media instance number against the value in shared memory the TEST_UNIT_READY routine checks the accessibility of the media. It does so by opening the the device with the O_NONBLOCK flag, clearing the flag with fcntl() and checking the value returned by a read() from the device. Using O_NONBLOCK prevents the automatic draw-in of the cd tray should it be ejected. If the guest believes that the media should be present then TEST_UNIT_READY returns ok, otherwise, it reports MEDIA_CHANGED and then MEDIA_NOT_PRESENT for all following TEST_UNIT_READY until it determined that media is once again present. This is determined by TEST_UNIT_READY when it believes that media is not present and the open() and read() succeed.

When it is discovered that media has become present then qemu responds essentially as if qemu's 'change' command had been entered at the qemu's monitor screen. The device is opened and made available to the quest. The guest's media polling routines discover the new media and respond
appropriately. Having the TEST_UNIT_READY check the media also allows
the guests to respond properly when media is ejected manually or from Dom0.

This implementation is stateless meaning that there is nothing to cleanup when a domain terminates, nicely or otherwise. The shared memory is not created until there is at least one guest and is removed when the last guest terminates, providing it did so nicely. Even if the memory should not be freed when the last domain terminates, it is not much memory and is never reallocated but simply reused by the next guest(s).

It was suggested that xenstore be used in place of the shared memory. After considering this it was decided to stay with the shared memory approach because of the frequency at which the memory was accessed and by the fact that it is not data that is managed or even interesting. Also, there is no measurable difference in cd IO performance with this implementation, nor any visible signs, i.e., no spinning up, lights blinking, trays unexpectedly moving, etc.

This implementation does nothing to protect against simultaneous writes to shared media. It is recognized that in the future there will need to be a comprehensive solution for the management of shared removable devices of all types. This patch simply satisfies the expectation that when media is present, or not, each guest responds appropriately.

This patch applies to change set 10162.

Signed off by Ross Maxfield <[email protected]>

tools/ioemu/block.c +40 -26
diff -r dc213d745642 tools/ioemu/block.c
@@ -1,8 +1,8 @@
 /*
  * QEMU System Emulator block driver
- * 
+ *
  * Copyright (c) 2003 Fabrice Bellard
- * 
+ *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
@@ -41,6 +41,7 @@ BlockDriverState *bdrv_new(const char *d
     bs = qemu_mallocz(sizeof(BlockDriverState));
     if(!bs)
         return NULL;
+
     pstrcpy(bs->device_name, sizeof(bs->device_name), device_name);
     if (device_name[0] != '\0') {
         /* insert at the end */
@@ -62,7 +63,7 @@ BlockDriver *bdrv_find_format(const char
     return NULL;
 }
 
-int bdrv_create(BlockDriver *drv, 
+int bdrv_create(BlockDriver *drv,
                 const char *filename, int64_t size_in_sectors,
                 const char *backing_file, int flags)
 {
@@ -86,7 +87,7 @@ static BlockDriver *find_image_format(co
         return NULL;
     }
     close(fd);
-    
+
     drv = NULL;
     score_max = 0;
     for(drv1 = first_drv; drv1 != NULL; drv1 = drv1->next) {
@@ -108,12 +109,13 @@ int bdrv_open2(BlockDriverState *bs, con
                BlockDriver *drv)
 {
     int ret;
-    
+
+    pstrcpy(bs->filename, sizeof(bs->filename), filename);
+
     bs->read_only = 0;
     bs->is_temporary = 0;
     bs->encrypted = 0;
-    
-    pstrcpy(bs->filename, sizeof(bs->filename), filename);
+
     if (!drv) {
         drv = find_image_format(filename);
         if (!drv)
@@ -123,7 +125,7 @@ int bdrv_open2(BlockDriverState *bs, con
     bs->opaque = qemu_mallocz(drv->instance_size);
     if (bs->opaque == NULL && drv->instance_size > 0)
         return -1;
-    
+
     ret = drv->bdrv_open(bs, filename);
     if (ret < 0) {
         qemu_free(bs->opaque);
@@ -146,6 +148,8 @@ int bdrv_open2(BlockDriverState *bs, con
             goto fail;
     }
 
+    shdev_set_media_instance(bs);
+
     bs->inserted = 1;
 
     /* call the change callback */
@@ -170,6 +174,7 @@ void bdrv_close(BlockDriverState *bs)
         bs->opaque = NULL;
         bs->drv = NULL;
         bs->inserted = 0;
+        bs->media_instance = 0;
 
         /* call the change callback */
         if (bs->change_cb)
@@ -222,7 +227,7 @@ int bdrv_commit(BlockDriverState *bs)
 }
 
 /* return -1 if error */
-int bdrv_read(BlockDriverState *bs, int64_t sector_num, 
+int bdrv_read(BlockDriverState *bs, int64_t sector_num,
               uint8_t *buf, int nb_sectors)
 {
     int ret, n;
@@ -261,7 +266,7 @@ int bdrv_read(BlockDriverState *bs, int6
 }
 
 /* return -1 if error */
-int bdrv_write(BlockDriverState *bs, int64_t sector_num, 
+int bdrv_write(BlockDriverState *bs, int64_t sector_num,
                const uint8_t *buf, int nb_sectors)
 {
     if (!bs->inserted)
@@ -286,7 +291,7 @@ void bdrv_set_boot_sector(BlockDriverSta
     memset(bs->boot_sector_data + size, 0, 512 - size);
 }
 
-void bdrv_set_geometry_hint(BlockDriverState *bs, 
+void bdrv_set_geometry_hint(BlockDriverState *bs,
                             int cyls, int heads, int secs)
 {
     bs->cyls = cyls;
@@ -301,7 +306,7 @@ void bdrv_set_type_hint(BlockDriverState
                       type == BDRV_TYPE_FLOPPY));
 }
 
-void bdrv_get_geometry_hint(BlockDriverState *bs, 
+void bdrv_get_geometry_hint(BlockDriverState *bs,
                             int *pcyls, int *pheads, int *psecs)
 {
     *pcyls = bs->cyls;
@@ -339,7 +344,7 @@ void bdrv_set_locked(BlockDriverState *b
     bs->locked = locked;
 }
 
-void bdrv_set_change_cb(BlockDriverState *bs, 
+void bdrv_set_change_cb(BlockDriverState *bs,
                         void (*change_cb)(void *opaque), void *opaque)
 {
     bs->change_cb = change_cb;
@@ -377,7 +382,7 @@ void bdrv_get_format(BlockDriverState *b
     }
 }
 
-void bdrv_iterate_format(void (*it)(void *opaque, const char *name), 
+void bdrv_iterate_format(void (*it)(void *opaque, const char *name),
                          void *opaque)
 {
     BlockDriver *drv;
@@ -387,7 +392,7 @@ void bdrv_iterate_format(void (*it)(void
     }
 }
 
-BlockDriverState *bdrv_find(const char *name)
+BlockDriverState *bdrv_find_by_device(const char *name)
 {
     BlockDriverState *bs;
 
@@ -396,6 +401,15 @@ BlockDriverState *bdrv_find(const char *
             return bs;
     }
     return NULL;
+}
+
+BlockDriverState *bdrv_find_bs(int (*it)(BlockDriverState *, void *), void *opaque)
+{
+    BlockDriverState *bs;
+
+    for (bs = bdrv_first; bs != NULL && !it(bs, opaque); bs = bs->next);
+
+    return( bs );
 }
 
 void bdrv_iterate(void (*it)(void *opaque, const char *name), void *opaque)
@@ -481,28 +495,28 @@ static int raw_open(BlockDriverState *bs
     return 0;
 }
 
-static int raw_read(BlockDriverState *bs, int64_t sector_num, 
+static int raw_read(BlockDriverState *bs, int64_t sector_num,
                     uint8_t *buf, int nb_sectors)
 {
     BDRVRawState *s = bs->opaque;
     int ret;
-    
+
     lseek(s->fd, sector_num * 512, SEEK_SET);
     ret = read(s->fd, buf, nb_sectors * 512);
-    if (ret != nb_sectors * 512) 
-        return -1;
-    return 0;
-}
-
-static int raw_write(BlockDriverState *bs, int64_t sector_num, 
+    if (ret != nb_sectors * 512)
+        return -1;
+    return 0;
+}
+
+static int raw_write(BlockDriverState *bs, int64_t sector_num,
                      const uint8_t *buf, int nb_sectors)
 {
     BDRVRawState *s = bs->opaque;
     int ret;
-    
+
     lseek(s->fd, sector_num * 512, SEEK_SET);
     ret = write(s->fd, buf, nb_sectors * 512);
-    if (ret != nb_sectors * 512) 
+    if (ret != nb_sectors * 512)
         return -1;
     return 0;
 }
@@ -521,7 +535,7 @@ static int raw_create(const char *filena
     if (flags || backing_file)
         return -ENOTSUP;
 
-    fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_LARGEFILE, 
+    fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_LARGEFILE,
               0644);
     if (fd < 0)
         return -EIO;
tools/ioemu/block_int.h +31 -26

90 lines not on this page · raw message

tools/ioemu/hw/ide.c +60 -5

130 lines not on this page · raw message

tools/ioemu/monitor.c +85 -30

232 lines not on this page · raw message

tools/ioemu/target-i386-dm/Makefile +1 -1
diff -r dc213d745642 tools/ioemu/target-i386-dm/Makefile
@@ -250,7 +250,7 @@ endif
 endif
 
 # must use static linking to avoid leaving stuff in virtual address space
-VL_OBJS=vl.o exec.o monitor.o osdep.o block.o readline.o pci.o console.o 
+VL_OBJS=vl.o exec.o monitor.o shdev.o osdep.o block.o readline.o pci.o console.o 
 VL_OBJS+=block-cow.o block-qcow.o block-vmdk.o block-cloop.o aes.o
 #VL_OBJS+= block-cloop.o
 
tools/ioemu/vl.c +76 -44

224 lines not on this page · raw message

tools/ioemu/vl.h +58 -43

272 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw

Re: [PATCH][RFC] Sharing removable media patch

Here's a second version of the patch with less noise. There is some appropriate code shifting.

signed off by Ross Maxfield <[email protected]>

tools/ioemu/block.c +12 -1
diff -r 3ed325fa395b tools/ioemu/block.c
@@ -147,6 +147,7 @@ int bdrv_open2(BlockDriverState *bs, con
     }
 
     bs->inserted = 1;
+    shdev_set_media_instance(bs);
 
     /* call the change callback */
     if (bs->change_cb)
@@ -170,6 +171,7 @@ void bdrv_close(BlockDriverState *bs)
         bs->opaque = NULL;
         bs->drv = NULL;
         bs->inserted = 0;
+	bs->media_instance = 0;
 
         /* call the change callback */
         if (bs->change_cb)
@@ -387,7 +389,7 @@ void bdrv_iterate_format(void (*it)(void
     }
 }
 
-BlockDriverState *bdrv_find(const char *name)
+BlockDriverState *bdrv_find_by_device(const char *name)
 {
     BlockDriverState *bs;
 
@@ -396,6 +398,15 @@ BlockDriverState *bdrv_find(const char *
             return bs;
     }
     return NULL;
+}
+
+BlockDriverState *bdrv_find_bs(int (*it)(BlockDriverState *, void *), void *opaque)
+{
+    BlockDriverState *bs;
+
+    for (bs = bdrv_first; bs != NULL && !it(bs, opaque); bs = bs->next);
+
+    return( bs );
 }
 
 void bdrv_iterate(void (*it)(void *opaque, const char *name), void *opaque)
tools/ioemu/block_int.h +29 -24

80 lines not on this page · raw message

tools/ioemu/hw/ide.c +60 -5

130 lines not on this page · raw message

tools/ioemu/monitor.c +78 -23

185 lines not on this page · raw message

tools/ioemu/vl.h +17 -4
diff -r 3ed325fa395b tools/ioemu/vl.h
@@ -37,6 +37,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/stat.h>
+#include <block_int.h>
 #include "audio/audio.h"
 #include "xenctrl.h"
 #include "xs.h"
@@ -84,6 +85,8 @@ static inline char *realpath(const char 
 #endif
 
 /* vl.c */
+#define CDROM_DISK_POSITION 2
+
 uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c);
 
 void hw_error(const char *fmt, ...);
@@ -374,9 +377,6 @@ void port_e9_init(void);
 void port_e9_init(void);
 
 /* block.c */
-typedef struct BlockDriverState BlockDriverState;
-typedef struct BlockDriver BlockDriver;
-
 extern BlockDriver bdrv_raw;
 extern BlockDriver bdrv_cow;
 extern BlockDriver bdrv_qcow;
@@ -421,7 +421,8 @@ void bdrv_set_change_cb(BlockDriverState
                         void (*change_cb)(void *opaque), void *opaque);
 void bdrv_get_format(BlockDriverState *bs, char *buf, int buf_size);
 void bdrv_info(void);
-BlockDriverState *bdrv_find(const char *name);
+BlockDriverState *bdrv_find_bs(int (*it)(BlockDriverState *bs, void *opaque), void *opaque);
+BlockDriverState *bdrv_find_by_device(const char *name);
 void bdrv_iterate(void (*it)(void *opaque, const char *name), void *opaque);
 int bdrv_is_encrypted(BlockDriverState *bs);
 int bdrv_set_key(BlockDriverState *bs, const char *key);
@@ -797,6 +798,15 @@ int cuda_init(openpic_t *openpic, int ir
 
 #endif /* defined(QEMU_TOOL) */
 
+/* shdev.h */
+
+int shdev_init(void);
+int shdev_report_device(BlockDriverState *bs, const char *name);
+void shdev_set_media_instance(BlockDriverState *bs);
+void shdev_eject_notice(BlockDriverState *bs);
+inline int shdev_media_check(BlockDriverState *bs);
+void do_info_shdev(void);
+
 /* monitor.c */
 void monitor_init(CharDriverState *hd, int show_banner);
 void term_puts(const char *str);
@@ -804,6 +814,9 @@ void term_printf(const char *fmt, ...) _
 void term_printf(const char *fmt, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
 void term_flush(void);
 void term_print_help(void);
+void do_insert_request(void);
+void do_eject(int force, const char *device);
+
 
 /* readline.c */
 typedef void ReadLineFunc(void *opaque, const char *str);
tools/ioemu/shdev.c new file +137 -0

137 lines not on this page · raw message

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel