qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: hkran <hkran@vnet.linux.ibm.com>
To: Qemu-devel@nongnu.org, spice-devel@lists.freedesktop.org
Subject: Re: [Qemu-devel] windows XP fail to enter standby mode
Date: Mon, 19 Sep 2011 17:27:43 +0800	[thread overview]
Message-ID: <4E770B0F.2080609@vnet.linux.ibm.com> (raw)
In-Reply-To: <20110918075314.GD2685@bow.tlv.redhat.com>

On 09/18/2011 03:53 PM, Alon Levy wrote:
> On Fri, Sep 16, 2011 at 02:28:05PM +0800, hkran wrote:
>> On 09/15/2011 06:42 PM, Alon Levy wrote:
>>> On Thu, Sep 15, 2011 at 05:23:01PM +0800, hkran wrote:
>>>> Hi,
>>>>
>>>> If I select to let my guest XP enter standby mode by clicking the button
>>>> manually. qemu will exit with the following message left:
>>>>
>>>> ioport_write: PANIC d->guest_slots[val].active failed
>>>>
>>>> the following is my command to start qemu:
>>>>
>>>> /home/huikai/qemu15/bin/qemu --enable-kvm  -m 768  -drive
>>>> file=/home/huikai/winxp_dev.img,if=virtio  -net nic,model=virtio -net
>>>> user -usb -usbdevice tablet -vga qxl  -localtime  -device virtio-serial
>>>> -chardev spicevmc,name=vdagent,id=vdagent -device
>>>> virtserialport,chardev=vdagent,name=spice0 -spice
>>>> port=1234,disable-ticketing -monitor telnet:localhost:12341,server,nowait
>>>>
>>>> Qemu is 0.15v
>>>> gxl driver isqxl-0.10-20112808.zip<http://spice-space.org/download/binaries/qxl-0.10-20112808.zip>    from http://spice-space.org/download.html
>>> What bios are you using? Is there a reset event? can you paste the complete log before the PANIC?
>>>
>>> Thanks,
>>> Alon
>>>
>> BIOS:
>> (qemu) info roms
>> addr=00000000fffe0000 size=0x020000 mem=rom name="bios.bin"
> This just shows you have a bios, but where is that file from? i.e. is
> it compiled by you, or from an rpm, if so which and what version?
>
>>> the entire log:
>> [root@oc0100708617 ~]# /home/huikai/qemu15/bin/qemu  --enable-kvm
>> -m 768  -drive file=/home/huikai/winxp_dev.img,if=virtio  -net
>> nic,model=virtio -net user -usb -usbdevice tablet  -localtime -vga
>> qxl -device virtio-serial -chardev spicevmc,name=vdagent,id=vdagent
>> -device virtserialport,chardev=vdagent,name=spice0 -spice
>> port=1234,disable-ticketing   -monitor
>> telnet:localhost:12341,server,nowait -cdrom
>> /home/huikai/iso/GRMWDK_EN_7600_1.ISO
>> do_spice_init: starting 0.8.0
>> spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
>> spice_server_add_interface: SPICE_INTERFACE_MOUSE
>> spice_server_add_interface: SPICE_INTERFACE_QXL
>> red_worker_main: begin
>> handle_dev_destroy_surfaces:
>> handle_dev_destroy_surfaces:
>> handle_dev_input: start
>> spice_server_add_interface: SPICE_INTERFACE_TABLET
>> handle_dev_destroy_surfaces:
>> reds_handle_main_link:
>> reds_show_new_channel: channel 1:0, connected successfully, over Non
>> Secure link
>> handle_dev_input: mouse mode 2
>> reds_main_handle_message: net test: latency 1.043000 ms, bitrate
>> 341333333333 bps (325520.833333 Mbps)
>> reds_show_new_channel: channel 4:0, connected successfully, over Non
>> Secure link
>> red_dispatcher_set_cursor_peer:
>> handle_dev_input: cursor connect
>> reds_show_new_channel: channel 2:0, connected successfully, over Non
>> Secure link
>> red_dispatcher_set_peer:
>> handle_dev_input: connect
>> handle_new_display_channel: jpeg disabled
>> handle_new_display_channel: zlib-over-glz disabled
>> reds_show_new_channel: channel 3:0, connected successfully, over Non
>> Secure link
>> inputs_link:
>> handle_dev_destroy_surfaces:
>> handle_dev_destroy_surfaces:
>> ioport_write: PANIC d->guest_slots[val].active failed
>>
>> As for reset event, Alon, Do you know how to tell a reset event
>> posted in qemu?
>> In addition, if I use the default -vga std, qemu will not exit when
>> VM entering standby.It seems that there is something wrong about qxl
>> driver.
> You can enable bios debug, that should show it. Also, you can do a reset (via
> guest for instance) and see the qemu messages you get from it, and then compare.
>
> To enable bios debugging add the following to the command line for upstream qemu:
>   -chardev stdio,id=muxstdio,mux=on -mon chardev=muxstdio,mode=readline
>   -device isa-debugcon,iobase=0x402,chardev=muxstdio
>
> This assumes you don't mind/want to have the monitor on stdio, if you use a qmp or hmp
> on something else the stdio (unix domain socket / tcp) then you can just forgoe
> the whole mux part.
>
> For rhel6 that device is not backported, but you can still get bios debugging information
> by uncommenting theline "//#define DEBUG_BIOS" in hw/pc.c
>
> Also you can just enable debugging for the qxl device, for the primary (-vga qxl) you need to add:
> -global qxl-vga.debug=1
>
> For instance, do system_reset from monitor after running:
> qemu -vga qxl -monitor stdio -global qxl-vga.debug=1,
>
> I don't see a reset happening. You should see something like:
>
> qxl-0: qxl_hard_reset: start
> qxl-0: qxl_reset_surfaces:
> qxl-0: qxl_reset_memslots:
> qxl-0: qxl_soft_reset:
> qxl-0: qxl_enter_vga_mode
> qxl-0: qxl_hard_reset: done
>
> (It repeats a few times - system_reset actually calls reset more then once on each device).
>
>>>> _______________________________________________________
>>>> kvm-cstl mailing list&lt;kvm-cstl@lists.linux.ibm.com>
>>>> To unsubscribe from the list, change your list options
>>>> or if you have forgotten your list password visit:
>>>> http://lists.linux.ibm.com/mailman/listinfo/kvm-cstl
>>>>
>>
The bios I am using is shipped with Qemu.
I got qemu from http://wiki.qemu.org/download/qemu-0.15.0.tar.gz
and configure and install it.
After I enable bios-debug, I saw this:

Start bios (version pre-0.6.3-20110315_112143-titi)

Is that the BIOS version we wanted?

The following is the log that I enabled the BIOS debug and QXL debug:

[root@oc0100708617 ~]#  /home/huikai/qemu15/bin/qemu-system-x86_64 
--enable-kvm  -m 1024 -drive 
file=/home/huikai/winxp_dev.img,if=virtio,aio=native  -net 
nic,model=virtio -net user -usb -usbdevice tablet -vga qxl -global 
qxl-vga.debug=1 -localtime  -device virtio-serial -chardev 
spicevmc,name=vdagent,id=vdagent -device 
virtserialport,chardev=vdagent,name=spice0 -spice 
port=1234,disable-ticketing   -chardev stdio,id=muxstdio,mux=on   
-device isa-debugcon,iobase=0x402,chardev=muxstdio -monitor  
telnet:localhost:12341,server,nowait
do_spice_init: starting 0.8.0
spice_server_add_interface: SPICE_INTERFACE_KEYBOARD
spice_server_add_interface: SPICE_INTERFACE_MOUSE
spice_server_add_interface: SPICE_INTERFACE_QXL
qxl-0: interface_get_init_info:
red_worker_main: begin
qxl-0: interface_attach_worker:
qxl-0: interface_set_compression_level: 0
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
handle_dev_input: start
Start bios (version pre-0.6.3-20110315_112143-titi)
Ram Size=0x40000000 (0x0000000000000000 high)
Relocating init from 0x000e49d0 to 0x3ffe1880 (size 58968)
CPU Mhz=2662
PCI: pci_bios_init_bus_rec bus = 0x0
PIIX3/PIIX4 init: elcr=00 0c
PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237
PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000
PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010
region 4: 0x0000c000
PCI: bus=0 devfn=0x0a: vendor_id=0x8086 device_id=0x7020
region 4: 0x0000c020
PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113
PCI: bus=0 devfn=0x10: vendor_id=0x1b36 device_id=0x0100
region 0: 0xf0000000
region 1: 0xf4000000
mem region of (bdf 0x10 bar 2) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
region 3: 0x0000c040
mem region of (bdf 0x10 bar 6) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
qxl-0: qxl_map: bar 0 [devram] addr 0xf0000000 size 0x4000000
qxl-0: qxl_map: bar 1 [vram] addr 0xf4000000 size 0x4000000
qxl-0: qxl_map: bar 3 [ioports] addr 0xc040 size 0x10
PCI: bus=0 devfn=0x18: vendor_id=0x1af4 device_id=0x1000
region 0: 0x0000c060
mem region of (bdf 0x18 bar 1) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
mem region of (bdf 0x18 bar 6) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
PCI: bus=0 devfn=0x20: vendor_id=0x1af4 device_id=0x1003
region 0: 0x0000c080
mem region of (bdf 0x20 bar 1) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
PCI: bus=0 devfn=0x28: vendor_id=0x1af4 device_id=0x1001
region 0: 0x0000c0c0
mem region of (bdf 0x28 bar 1) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
Found 1 cpu(s) max supported 1 cpu(s)
MP table addr=0x000fdb20 MPC table addr=0x000fdb30 size=248
SMBIOS ptr=0x000fdb00 table=0x3ffffef0
ACPI tables: RSDP=0x000fdad0 RSDT=0x3fffd6a0
Scan for VGA option rom
UHCI init on dev 00:01.2 (io=c020)
Found 1 lpt ports
Found 1 serial ports
ATA controller 0 at 1f0/3f4/0 (irq 14 dev 9)
ATA controller 1 at 170/374/0 (irq 15 dev 9)
found virtio-blk at 0:5
ebda moved from 9fc00 to 9dc00
Searching bootorder for: /pci@i0cf8/*@5
DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/disk@0
PS2 keyboard initialized
All threads complete.
Scan for option roms
drive 0x000fda80: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 
s=62914560
Returned 53248 bytes of ZoneHigh
e820 map has 7 items:
   0: 0000000000000000 - 000000000009dc00 = 1
   1: 000000000009dc00 - 00000000000a0000 = 2
   2: 00000000000f0000 - 0000000000100000 = 2
   3: 0000000000100000 - 000000003fffd000 = 1
   4: 000000003fffd000 - 0000000040000000 = 2
   5: 00000000feffc000 - 00000000ff000000 = 2
   6: 00000000fffc0000 - 0000000100000000 = 2
enter handle_19:
   NULL
Booting from Hard Disk...
Booting from 0000:7c00
pnp call arg1=0
reds_handle_main_link:
reds_show_new_channel: channel 1:0, connected successfully, over Non 
Secure link
qxl-0: interface_get_init_info:
reds_main_handle_message: net test: latency 0.364000 ms, bitrate 
839000409 bps (800.133142 Mbps)
reds_show_new_channel: channel 4:0, connected successfully, over Non 
Secure link
red_dispatcher_set_cursor_peer:
handle_dev_input: cursor connect
reds_show_new_channel: channel 2:0, connected successfully, over Non 
Secure link
red_dispatcher_set_peer:
handle_dev_input: connect
handle_new_display_channel: jpeg disabled
handle_new_display_channel: zlib-over-glz disabled
reds_show_new_channel: channel 3:0, connected successfully, over Non 
Secure link
inputs_link:
qxl-0: qxl_map: bar 0 [devram] addr 0xf0000000 size 0x4000000
qxl-0: qxl_map: bar 1 [vram] addr 0xf4000000 size 0x4000000
qxl-0: qxl_map: bar 3 [ioports] addr 0xc040 size 0x10
qxl-0: qxl_map: bar 0 [devram] addr 0xf0000000 size 0x4000000
qxl-0: qxl_map: bar 1 [vram] addr 0xf4000000 size 0x4000000
qxl-0: qxl_map: bar 2 [rom] addr 0xfebfa000 size 0x2000
qxl-0: qxl_map: bar 3 [ioports] addr 0xc040 size 0x10
spice_server_add_interface: SPICE_INTERFACE_TABLET
handle_dev_input: mouse mode 2
qxl-0: QXL_IO_RESET
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
qxl-0: qxl_add_memslot: slot 1: guest phys 0xf0000000 - 0xf3ffe000
qxl-0: qxl_add_memslot: slot 1: host virt 0x7ffa45847000 - 0x7ffa49845000
qxl-0: qxl_add_memslot: slot 2: guest phys 0xf4000000 - 0xf8000000
qxl-0: qxl_add_memslot: slot 2: host virt 0x7ffa406d2000 - 0x7ffa446d2000
qxl-0: QXL_IO_CREATE_PRIMARY
qxl-0: qxl_exit_vga_mode
qxl-0: qxl_destroy_primary
qxl-0: qxl_create_guest_primary: 1280x800

///////////////////////////////////////////////////////////////////////////////////////after 
I issued system_reset from monitor 
console/////////////////////////////////////////
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
Start bios (version pre-0.6.3-20110315_112143-titi)
Attempting a hard reboot
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
Start bios (version pre-0.6.3-20110315_112143-titi)
Ram Size=0x40000000 (0x0000000000000000 high)
Relocating init from 0x000e49d0 to 0x3ffe1880 (size 58968)
CPU Mhz=2661
PCI: pci_bios_init_bus_rec bus = 0x0
PIIX3/PIIX4 init: elcr=00 0c
PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237
PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000
PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010
region 4: 0x0000c000
PCI: bus=0 devfn=0x0a: vendor_id=0x8086 device_id=0x7020
region 4: 0x0000c020
PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113
PCI: bus=0 devfn=0x10: vendor_id=0x1b36 device_id=0x0100
region 0: 0xf0000000
region 1: 0xf4000000
mem region of (bdf 0x10 bar 2) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
region 3: 0x0000c040
mem region of (bdf 0x10 bar 6) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
qxl-0: qxl_map: bar 0 [devram] addr 0xf0000000 size 0x4000000
qxl-0: qxl_map: bar 1 [vram] addr 0xf4000000 size 0x4000000
qxl-0: qxl_map: bar 3 [ioports] addr 0xc040 size 0x10
PCI: bus=0 devfn=0x18: vendor_id=0x1af4 device_id=0x1000
region 0: 0x0000c060
mem region of (bdf 0x18 bar 1) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
mem region of (bdf 0x18 bar 6) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
PCI: bus=0 devfn=0x20: vendor_id=0x1af4 device_id=0x1003
region 0: 0x0000c080
mem region of (bdf 0x20 bar 1) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
PCI: bus=0 devfn=0x28: vendor_id=0x1af4 device_id=0x1001
region 0: 0x0000c0c0
mem region of (bdf 0x28 bar 1) can't be mapped. increase 
BUILD_PCIMEM_SIZE and recompile. size 8000000
Found 1 cpu(s) max supported 1 cpu(s)
MP table addr=0x000fdb20 MPC table addr=0x000fdb30 size=248
SMBIOS ptr=0x000fdb00 table=0x3ffffef0
ACPI tables: RSDP=0x000fdad0 RSDT=0x3fffd6a0
Scan for VGA option rom
UHCI init on dev 00:01.2 (io=c020)
Found 1 lpt ports
Found 1 serial ports
ATA controller 0 at 1f0/3f4/0 (irq 14 dev 9)
ATA controller 1 at 170/374/0 (irq 15 dev 9)
found virtio-blk at 0:5
ebda moved from 9fc00 to 9dc00
Searching bootorder for: /pci@i0cf8/*@5
DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
Searching bootorder for: /pci@i0cf8/*@1,1/drive@1/disk@0
PS2 keyboard initialized
All threads complete.
Scan for option roms
drive 0x000fda80: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 
s=62914560
Returned 53248 bytes of ZoneHigh
e820 map has 7 items:
   0: 0000000000000000 - 000000000009dc00 = 1
   1: 000000000009dc00 - 00000000000a0000 = 2
   2: 00000000000f0000 - 0000000000100000 = 2
   3: 0000000000100000 - 000000003fffd000 = 1
   4: 000000003fffd000 - 0000000040000000 = 2
   5: 00000000feffc000 - 00000000ff000000 = 2
   6: 00000000fffc0000 - 0000000100000000 = 2
enter handle_19:
   NULL
Booting from Hard Disk...
Booting from 0000:7c00
pnp call arg1=0
qxl-0: qxl_map: bar 0 [devram] addr 0xf0000000 size 0x4000000
qxl-0: qxl_map: bar 1 [vram] addr 0xf4000000 size 0x4000000
qxl-0: qxl_map: bar 3 [ioports] addr 0xc040 size 0x10
qxl-0: qxl_map: bar 0 [devram] addr 0xf0000000 size 0x4000000
qxl-0: qxl_map: bar 1 [vram] addr 0xf4000000 size 0x4000000
qxl-0: qxl_map: bar 2 [rom] addr 0xfebfa000 size 0x2000
qxl-0: qxl_map: bar 3 [ioports] addr 0xc040 size 0x10
qxl-0: QXL_IO_RESET
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
qxl-0: qxl_add_memslot: slot 1: guest phys 0xf0000000 - 0xf3ffe000
qxl-0: qxl_add_memslot: slot 1: host virt 0x7ffa45847000 - 0x7ffa49845000
qxl-0: qxl_add_memslot: slot 2: guest phys 0xf4000000 - 0xf8000000
qxl-0: qxl_add_memslot: slot 2: host virt 0x7ffa406d2000 - 0x7ffa446d2000
qxl-0: QXL_IO_CREATE_PRIMARY
qxl-0: qxl_exit_vga_mode
qxl-0: qxl_destroy_primary
qxl-0: qxl_create_guest_primary: 1280x800
/////////////////////////////////////////////////////////////////////////////////////After 
I clicked enter standby mode button in XP 
guest"///////////////////////////////////////////
handle_dev_destroy_surfaces:
qxl-0: QXL_IO_RESET
qxl-0: qxl_hard_reset: start
qxl-0: qxl_reset_surfaces:
handle_dev_destroy_surfaces:
qxl-0: qxl_reset_memslots:
qxl-0: qxl_soft_reset:
qxl-0: qxl_enter_vga_mode
qxl-0: qxl_hard_reset: done
qxl-0: qxl_add_memslot: slot 1: guest phys 0xf0000000 - 0xf3ffe000
qxl-0: qxl_add_memslot: slot 1: host virt 0x7ffa45847000 - 0x7ffa49845000
qxl-0: qxl_del_memslot: slot 2
ioport_write: PANIC d->guest_slots[val].active failed

      reply	other threads:[~2011-09-19  9:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15  9:23 [Qemu-devel] windows XP fail to enter standby mode hkran
2011-09-15 10:42 ` Alon Levy
2011-09-16  6:28   ` hkran
2011-09-18  7:53     ` Alon Levy
2011-09-19  9:27       ` hkran [this message]

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=4E770B0F.2080609@vnet.linux.ibm.com \
    --to=hkran@vnet.linux.ibm.com \
    --cc=Qemu-devel@nongnu.org \
    --cc=spice-devel@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).