All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
       [not found]               ` <C7C4AF833A4C6B488E44D309A5B03905012876FB@be02.systex.tw>
@ 2012-01-15 11:27                 ` Stefan Hajnoczi
  2012-01-15 11:41                   ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Stefan Hajnoczi @ 2012-01-15 11:27 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: spice-devel,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, Vadim Rozenfeld, qemu-devel

2012/1/14 Charles.Tsai-蔡清海-研究發展部 <charles.tsai@cloudena.com>:
>        I tested Qemu 0.15 for Windows XP guest OS. But I found that the Virtual Serial I/O driver failed in driver initialization.
>        The root cause of this problem is because the hardware resources(I/O in this device) is not allocated to the virtual serial I/O.
>        When I debugged on the vioserial driver, no hardware resource actually is allocated to this device.
>        This bug seems to be in the area of Qemu. Do you know whom I can consult to fix this problem? Please let me know if you know the group or the person.

I have CCed Vadim (virtio Windows driver) and the QEMU mailing list.

Please post your QEMU command-line so we can see how the guest is configured.

You mentioned that you debugged the driver and hardware resources
weren't allocated.  Do you have a virtio PCI device inside the guest
for this virtio-serial device?  Were you able to tell which part of
driver initialization failed (finding the PCI device, mapping its
resources (BARs), etc)?

Stefan

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-15 11:27                 ` [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15 Stefan Hajnoczi
@ 2012-01-15 11:41                   ` Vadim Rozenfeld
  2012-01-16  2:02                     ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-15 11:41 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: spice-devel,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel,
	Charles.Tsai-蔡清海-研究發展部

On Sun, 2012-01-15 at 11:27 +0000, Stefan Hajnoczi wrote:
> 2012/1/14 Charles.Tsai-蔡清海-研究發展部 <charles.tsai@cloudena.com>:
> >        I tested Qemu 0.15 for Windows XP guest OS. But I found that the Virtual Serial I/O driver failed in driver initialization.
> >        The root cause of this problem is because the hardware resources(I/O in this device) is not allocated to the virtual serial I/O.
> >        When I debugged on the vioserial driver, no hardware resource actually is allocated to this device.
> >        This bug seems to be in the area of Qemu. Do you know whom I can consult to fix this problem? Please let me know if you know the group or the person.
> 
> I have CCed Vadim (virtio Windows driver) and the QEMU mailing list.
> 
> Please post your QEMU command-line so we can see how the guest is configured.
> 
> You mentioned that you debugged the driver and hardware resources
> weren't allocated.  Do you have a virtio PCI device inside the guest
> for this virtio-serial device?  Were you able to tell which part of
> driver initialization failed (finding the PCI device, mapping its
> resources (BARs), etc)?
> 
> Stefan

Could you post "pci info" output?

thanks,
Vadim.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-15 11:41                   ` Vadim Rozenfeld
@ 2012-01-16  2:02                     ` Charles.Tsai-蔡清海-研究發展部
  2012-01-16  7:13                       ` Vadim Rozenfeld
                                         ` (2 more replies)
  0 siblings, 3 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-16  2:02 UTC (permalink / raw)
  To: Vadim Rozenfeld, Stefan Hajnoczi
  Cc: spice-devel,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel

Vadim,

Thank you for your prompt reply. Here are the information for our test case.


1) we use the following command line to launch the guest OS


/usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name win_xp -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=readline
-rtc base=localtime
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0
-drive file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
-netdev tap,fd=17,id=hostnet0
-device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multifunction=on,addr=0x3.0x0
-chardev pty,id=charserial0
-device isa-serial,chardev=charserial0,id=serial0
-chardev spicevmc,id=charchannel0,name=vdagent
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
-usb -device usb-tablet,id=input0
-spice port=5900,addr=0.0.0.0,disable-ticketing
-vga qxl -global qxl-vga.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0



2). In Guest Windows XP OS


When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.


VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.

I added the following trace and the value of nListSize is ZERO.
TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", __FUNCTION__,nListSize); 


So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
Let me know if you need further information. Thanks.




-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Sunday, January 15, 2012 7:42 PM
To: Stefan Hajnoczi
Cc: Charles.Tsai-蔡清海-研究發展部; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Sun, 2012-01-15 at 11:27 +0000, Stefan Hajnoczi wrote:
> 2012/1/14 Charles.Tsai-蔡清海-研究發展部 <charles.tsai@cloudena.com>:
> >        I tested Qemu 0.15 for Windows XP guest OS. But I found that the Virtual Serial I/O driver failed in driver initialization.
> >        The root cause of this problem is because the hardware resources(I/O in this device) is not allocated to the virtual serial I/O.
> >        When I debugged on the vioserial driver, no hardware resource actually is allocated to this device.
> >        This bug seems to be in the area of Qemu. Do you know whom I can consult to fix this problem? Please let me know if you know the group or the person.
> 
> I have CCed Vadim (virtio Windows driver) and the QEMU mailing list.
> 
> Please post your QEMU command-line so we can see how the guest is configured.
> 
> You mentioned that you debugged the driver and hardware resources 
> weren't allocated.  Do you have a virtio PCI device inside the guest 
> for this virtio-serial device?  Were you able to tell which part of 
> driver initialization failed (finding the PCI device, mapping its 
> resources (BARs), etc)?
> 
> Stefan

Could you post "pci info" output?

thanks,
Vadim.


^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  2:02                     ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-16  7:13                       ` Vadim Rozenfeld
  2012-01-16  9:17                         ` Charles.Tsai-蔡清海-研究發展部
  2012-01-16  8:37                       ` Stefan Hajnoczi
  2012-01-17  1:50                       ` Michael Roth
  2 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-16  7:13 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel, spice-devel

On Mon, 2012-01-16 at 10:02 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> Thank you for your prompt reply. Here are the information for our test case.
> 
> 
> 1) we use the following command line to launch the guest OS
> 
> 
> /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name win_xp -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=readline
> -rtc base=localtime
> -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0
> -drive file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
> -netdev tap,fd=17,id=hostnet0
> -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multifunction=on,addr=0x3.0x0
> -chardev pty,id=charserial0
> -device isa-serial,chardev=charserial0,id=serial0
> -chardev spicevmc,id=charchannel0,name=vdagent
> -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
> -usb -device usb-tablet,id=input0
> -spice port=5900,addr=0.0.0.0,disable-ticketing
> -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> 
> 
> 
> 2). In Guest Windows XP OS
> 
> 
> When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> 
> 
> VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> 
> I added the following trace and the value of nListSize is ZERO.
> TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", __FUNCTION__,nListSize); 
> 
> 
> So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> Let me know if you need further information. Thanks.
> 
Hi Charles,
You're right. 
If WdfCmResourceListGetCount returns zero, 
it must be a problem with resources list.
Output of "info pci" and "info qtree" commands
could be helpful in analyzing this problem.

Best regards,
Vadim.
> 
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
> Sent: Sunday, January 15, 2012 7:42 PM
> To: Stefan Hajnoczi
> Cc: Charles.Tsai-蔡清海-研究發展部; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
> Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Sun, 2012-01-15 at 11:27 +0000, Stefan Hajnoczi wrote:
> > 2012/1/14 Charles.Tsai-蔡清海-研究發展部 <charles.tsai@cloudena.com>:
> > >        I tested Qemu 0.15 for Windows XP guest OS. But I found that the Virtual Serial I/O driver failed in driver initialization.
> > >        The root cause of this problem is because the hardware resources(I/O in this device) is not allocated to the virtual serial I/O.
> > >        When I debugged on the vioserial driver, no hardware resource actually is allocated to this device.
> > >        This bug seems to be in the area of Qemu. Do you know whom I can consult to fix this problem? Please let me know if you know the group or the person.
> > 
> > I have CCed Vadim (virtio Windows driver) and the QEMU mailing list.
> > 
> > Please post your QEMU command-line so we can see how the guest is configured.
> > 
> > You mentioned that you debugged the driver and hardware resources 
> > weren't allocated.  Do you have a virtio PCI device inside the guest 
> > for this virtio-serial device?  Were you able to tell which part of 
> > driver initialization failed (finding the PCI device, mapping its 
> > resources (BARs), etc)?
> > 
> > Stefan
> 
> Could you post "pci info" output?
> 
> thanks,
> Vadim.
> 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  2:02                     ` Charles.Tsai-蔡清海-研究發展部
  2012-01-16  7:13                       ` Vadim Rozenfeld
@ 2012-01-16  8:37                       ` Stefan Hajnoczi
  2012-01-16  9:32                         ` Charles.Tsai-蔡清海-研究發展部
  2012-01-17  1:50                       ` Michael Roth
  2 siblings, 1 reply; 50+ messages in thread
From: Stefan Hajnoczi @ 2012-01-16  8:37 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: spice-devel,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, Vadim Rozenfeld, qemu-devel

On Mon, Jan 16, 2012 at 10:02:22AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> Thank you for your prompt reply. Here are the information for our test case.
> 
> 
> 1) we use the following command line to launch the guest OS
> 
> 
> /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name win_xp -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=readline
> -rtc base=localtime
> -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0
> -drive file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
> -netdev tap,fd=17,id=hostnet0
> -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multifunction=on,addr=0x3.0x0
> -chardev pty,id=charserial0
> -device isa-serial,chardev=charserial0,id=serial0
> -chardev spicevmc,id=charchannel0,name=vdagent
> -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0

I tried the virtio-serial pieces with qemu.git and a RHEL6 guest.  The
guest was able to see the "com.redhat.spice.0" port.  This suggests the
problem was either fixed since QEMU 0.15 or that it only affects the
Windows virtio drivers.

> -usb -device usb-tablet,id=input0
> -spice port=5900,addr=0.0.0.0,disable-ticketing
> -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> 
> 
> 
> 2). In Guest Windows XP OS
> 
> 
> When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> 
> 
> VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> 
> I added the following trace and the value of nListSize is ZERO.
> TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", __FUNCTION__,nListSize); 
> 
> 
> So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> Let me know if you need further information. Thanks.

I suggest trying qemu-kvm 1.0 or qemu-kvm.git because the issue may have
been fixed since 0.15.

If the issue is still present, you could use git-bisect(1) to find the
commit that caused behavior to change between 0.14 and 0.15.

Stefan

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  7:13                       ` Vadim Rozenfeld
@ 2012-01-16  9:17                         ` Charles.Tsai-蔡清海-研究發展部
  2012-01-16 21:27                           ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-16  9:17 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel, spice-devel

Vadim,

I just ran the Qemu monitor to get the PCI information. The information is listed belowe.
From the listed information, I did not see anything wrong with the BAR0.
-----------


INFO:
  Bus  0, device   0, function 0:
    Host bridge: PCI device 8086:1237
      id ""
  Bus  0, device   1, function 0:
    ISA bridge: PCI device 8086:7000
      id ""
  Bus  0, device   1, function 1:
    IDE controller: PCI device 8086:7010
      BAR4: I/O at 0xc000 [0xc00f].
      id ""
  Bus  0, device   1, function 2:
    USB controller: PCI device 8086:7020
      IRQ 10.
      BAR4: I/O at 0xc020 [0xc03f].
      id ""
  Bus  0, device   1, function 3:
    Bridge: PCI device 8086:7113
      IRQ 9.
      id ""
  Bus  0, device   2, function 0:
    VGA controller: PCI device 1b36:0100
      IRQ 5.
      BAR0: 32 bit memory at 0xf0000000 [0xf3ffffff].
      BAR1: 32 bit memory at 0xf4000000 [0xf7ffffff].
      BAR2: 32 bit memory at 0xf8000000 [0xf8001fff].
      BAR3: I/O at 0xc040 [0xc05f].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0000fffe].
      id ""
  Bus  0, device   3, function 0:
    Ethernet controller: PCI device 10ec:8139
      IRQ 10.
      BAR0: I/O at 0xc100 [0xc1ff].
      BAR1: 32 bit memory at 0xffffffffffffffff [0x000000fe].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0000fffe].
      id "net0"
  Bus  0, device   4, function 0:
    RAM controller: PCI device 1af4:1002
      IRQ 11.
      BAR0: I/O at 0xc200 [0xc21f].
      id "balloon0"
  Bus  0, device   5, function 0:
    Class 1920: PCI device 1af4:1003
      IRQ 11.
      BAR0: I/O at 0xc220 [0xc23f].
      BAR1: 32 bit memory at 0xf8040000 [0xf8040fff].
      id "virtio-serial0"



QTREE:
bus: main-system-bus
  type System
  dev: hpet, id ""
    gpio-in 1
    dev-prop: timers = 3
    dev-prop: msi = off
    irq 32
    mmio 00000000fed00000/0000000000000400
  dev: i440FX-pcihost, id ""
    irq 0
    bus: pci.0
      type PCI
      dev: virtio-balloon-pci, id "balloon0"
        dev-prop: indirect_desc = on
        dev-prop: event_idx = on
        bus-prop: addr = 04.0
        bus-prop: romfile = <null>
        bus-prop: rombar = 1
        bus-prop: multifunction = on
        bus-prop: command_serr_enable = on
        class RAM controller, addr 00:04.0, pci id 1af4:1002 (sub 1af4:0005)
        bar 0: i/o at 0xc200 [0xc21f]
      dev: rtl8139, id "net0"
        dev-prop: mac = 52:54:00:e8:dc:b1
        dev-prop: vlan = <null>
        dev-prop: netdev = hostnet0
        dev-prop: bootindex = -1
        bus-prop: addr = 03.0
        bus-prop: romfile = "pxe-rtl8139.rom"
        bus-prop: rombar = 1
        bus-prop: multifunction = on
        bus-prop: command_serr_enable = on
        class Ethernet controller, addr 00:03.0, pci id 10ec:8139 (sub 1af4:1100)
        bar 0: i/o at 0xc100 [0xc1ff]
        bar 1: mem at 0xffffffffffffffff [0xfe]
        bar 6: mem at 0xffffffffffffffff [0xfffe]
      dev: virtio-serial-pci, id "virtio-serial0"
        dev-prop: ioeventfd = on
        dev-prop: vectors = 32
        dev-prop: class = 0x780
        dev-prop: indirect_desc = on
        dev-prop: event_idx = on
        dev-prop: max_ports = 31
        bus-prop: addr = 05.0
        bus-prop: romfile = <null>
        bus-prop: rombar = 1
        bus-prop: multifunction = on
        bus-prop: command_serr_enable = on
        class Class 0780, addr 00:05.0, pci id 1af4:1003 (sub 1af4:0003)
        bar 0: i/o at 0xc220 [0xc23f]
        bar 1: mem at 0xf8040000 [0xf8040fff]
        bus: virtio-serial0.0
          type virtio-serial-bus
          dev: virtserialport, id "channel0"
            dev-prop: chardev = charchannel0
            bus-prop: nr = 1
            bus-prop: name = "com.redhat.spice.0"
            port 1, guest on, host on, throttle off
      dev: PIIX4_PM, id ""
        dev-prop: smb_io_base = 45312
        bus-prop: addr = 01.3
        bus-prop: romfile = <null>
        bus-prop: rombar = 1
        bus-prop: multifunction = off
        bus-prop: command_serr_enable = on
        class Bridge, addr 00:01.3, pci id 8086:7113 (sub 1af4:1100)
        bus: i2c
          type I2C
          dev: smbus-eeprom, id ""
            bus-prop: address = 87
          dev: smbus-eeprom, id ""
            bus-prop: address = 86
          dev: smbus-eeprom, id ""
            bus-prop: address = 85
          dev: smbus-eeprom, id ""
            bus-prop: address = 84
          dev: smbus-eeprom, id ""
            bus-prop: address = 83
          dev: smbus-eeprom, id ""
            bus-prop: address = 82
          dev: smbus-eeprom, id ""
            bus-prop: address = 81
          dev: smbus-eeprom, id ""
            bus-prop: address = 80
      dev: piix3-usb-uhci, id ""
        dev-prop: masterbus = <null>
        dev-prop: firstport = 0
        bus-prop: addr = 01.2
        bus-prop: romfile = <null>
        bus-prop: rombar = 1
        bus-prop: multifunction = off
        bus-prop: command_serr_enable = on
        class USB controller, addr 00:01.2, pci id 8086:7020 (sub 1af4:1100)
        bar 4: i/o at 0xc020 [0xc03f]
        bus: usb.0
          type USB
          dev: usb-tablet, id "input0"
            bus-prop: port = <null>
            addr 0.1, port 1, speed 12, name QEMU USB Tablet, attached
      dev: piix3-ide, id ""
        bus-prop: addr = 01.1
        bus-prop: romfile = <null>
        bus-prop: rombar = 1
        bus-prop: multifunction = off
        bus-prop: command_serr_enable = on
        class IDE controller, addr 00:01.1, pci id 8086:7010 (sub 1af4:1100)
        bar 4: i/o at 0xc000 [0xc00f]
        bus: ide.1
          type IDE
        bus: ide.0
          type IDE
          dev: ide-drive, id "ide0-0-0"
            dev-prop: drive = drive-ide0-0-0
            dev-prop: logical_block_size = 512
            dev-prop: physical_block_size = 512
            dev-prop: min_io_size = 0
            dev-prop: opt_io_size = 0
            dev-prop: bootindex = 1
            dev-prop: discard_granularity = 0
            dev-prop: ver = "0.15.0"
            dev-prop: serial = "QM00001"
            bus-prop: unit = 0
      dev: qxl-vga, id ""
        dev-prop: ram_size = 67108864
        dev-prop: vram_size = 67108864
        dev-prop: revision = 3
        dev-prop: debug = 0
        dev-prop: guestdebug = 0
        dev-prop: cmdlog = 0
        bus-prop: addr = 02.0
        bus-prop: romfile = "vgabios-qxl.bin"
        bus-prop: rombar = 1
        bus-prop: multifunction = off
        bus-prop: command_serr_enable = on
        class VGA controller, addr 00:02.0, pci id 1b36:0100 (sub 1af4:1100)
        bar 0: mem at 0xf0000000 [0xf3ffffff]
        bar 1: mem at 0xf4000000 [0xf7ffffff]
        bar 2: mem at 0xf8000000 [0xf8001fff]
        bar 3: i/o at 0xc040 [0xc05f]
        bar 6: mem at 0xffffffffffffffff [0xfffe]
      dev: PIIX3, id ""
        bus-prop: addr = 01.0
        bus-prop: romfile = <null>
        bus-prop: rombar = 1
        bus-prop: multifunction = on
        bus-prop: command_serr_enable = on
        class ISA bridge, addr 00:01.0, pci id 8086:7000 (sub 1af4:1100)
        bus: isa.0
          type ISA
          dev: isa-serial, id "serial0"
            dev-prop: index = 0
            dev-prop: iobase = 0x3f8
            dev-prop: irq = 4
            dev-prop: chardev = charserial0
            isa irq 4
          dev: isa-fdc, id ""
            dev-prop: driveA = <null>
            dev-prop: driveB = <null>
            dev-prop: bootindexA = -1
            dev-prop: bootindexB = -1
            isa irq 6
          dev: port92, id ""
          dev: vmmouse, id ""
          dev: vmport, id ""
          dev: i8042, id ""
            isa irqs 1,12
          dev: isa-pit, id ""
            dev-prop: irq = 0
            dev-prop: iobase = 0x40
          dev: mc146818rtc, id ""
            dev-prop: base_year = 2000
      dev: i440FX, id ""
        bus-prop: addr = 00.0
        bus-prop: romfile = <null>
        bus-prop: rombar = 1
        bus-prop: multifunction = off
        bus-prop: command_serr_enable = on
        class Host bridge, addr 00:00.0, pci id 8086:1237 (sub 1af4:1100)
  dev: ioapic, id ""
    gpio-in 24
    irq 0
    mmio 00000000fec00000/0000000000001000
  dev: fw_cfg, id ""
    dev-prop: ctl_iobase = 0x510
    dev-prop: data_iobase = 0x511
    irq 0
    mmio ffffffffffffffff/0000000000000002
    mmio ffffffffffffffff/0000000000000002
  dev: kvmclock, id ""
    irq 0
  dev: apic, id ""
    dev-prop: id = 0
    irq 0
    mmio 00000000fee00000/0000000000100000


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Monday, January 16, 2012 3:14 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Stefan Hajnoczi; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
Subject: RE: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Mon, 2012-01-16 at 10:02 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> Thank you for your prompt reply. Here are the information for our test case.
> 
> 
> 1) we use the following command line to launch the guest OS
> 
> 
> /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 
> 1,sockets=1,cores=1,threads=1 -name win_xp -uuid 
> d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev 
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server
> ,nowait -mon chardev=charmonitor,id=monitor,mode=readline
> -rtc base=localtime
> -device 
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x
> 5.0x0 -drive 
> file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
> -device 
> ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=
> 1
> -netdev tap,fd=17,id=hostnet0
> -device 
> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multif
> unction=on,addr=0x3.0x0
> -chardev pty,id=charserial0
> -device isa-serial,chardev=charserial0,id=serial0
> -chardev spicevmc,id=charchannel0,name=vdagent
> -device 
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=chann
> el0,name=com.redhat.spice.0
> -usb -device usb-tablet,id=input0
> -spice port=5900,addr=0.0.0.0,disable-ticketing
> -vga qxl -global qxl-vga.vram_size=67108864 -device 
> virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> 
> 
> 
> 2). In Guest Windows XP OS
> 
> 
> When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> 
> 
> VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> 
> I added the following trace and the value of nListSize is ZERO.
> TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", 
> __FUNCTION__,nListSize);
> 
> 
> So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> Let me know if you need further information. Thanks.
> 
Hi Charles,
You're right. 
If WdfCmResourceListGetCount returns zero, it must be a problem with resources list.
Output of "info pci" and "info qtree" commands could be helpful in analyzing this problem.

Best regards,
Vadim.
> 
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Sunday, January 15, 2012 7:42 PM
> To: Stefan Hajnoczi
> Cc: Charles.Tsai-蔡清海-研究發展部; Alon Levy; 
> spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
> Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Sun, 2012-01-15 at 11:27 +0000, Stefan Hajnoczi wrote:
> > 2012/1/14 Charles.Tsai-蔡清海-研究發展部 <charles.tsai@cloudena.com>:
> > >        I tested Qemu 0.15 for Windows XP guest OS. But I found that the Virtual Serial I/O driver failed in driver initialization.
> > >        The root cause of this problem is because the hardware resources(I/O in this device) is not allocated to the virtual serial I/O.
> > >        When I debugged on the vioserial driver, no hardware resource actually is allocated to this device.
> > >        This bug seems to be in the area of Qemu. Do you know whom I can consult to fix this problem? Please let me know if you know the group or the person.
> > 
> > I have CCed Vadim (virtio Windows driver) and the QEMU mailing list.
> > 
> > Please post your QEMU command-line so we can see how the guest is configured.
> > 
> > You mentioned that you debugged the driver and hardware resources 
> > weren't allocated.  Do you have a virtio PCI device inside the guest 
> > for this virtio-serial device?  Were you able to tell which part of 
> > driver initialization failed (finding the PCI device, mapping its 
> > resources (BARs), etc)?
> > 
> > Stefan
> 
> Could you post "pci info" output?
> 
> thanks,
> Vadim.
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  8:37                       ` Stefan Hajnoczi
@ 2012-01-16  9:32                         ` Charles.Tsai-蔡清海-研究發展部
  2012-01-16  9:48                           ` Stefan Hajnoczi
  2012-01-16  9:50                           ` Dominique Rodrigues
  0 siblings, 2 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-16  9:32 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: spice-devel,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, Vadim Rozenfeld, qemu-devel

Stefan,

We need  the spice support in Qemu. Does qemu-kvm 1.0 support for spice?

-----Original Message-----
From: Stefan Hajnoczi [mailto:stefanha@gmail.com] 
Sent: Monday, January 16, 2012 4:37 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Vadim Rozenfeld; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Mon, Jan 16, 2012 at 10:02:22AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> Thank you for your prompt reply. Here are the information for our test case.
> 
> 
> 1) we use the following command line to launch the guest OS
> 
> 
> /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 
> 1,sockets=1,cores=1,threads=1 -name win_xp -uuid 
> d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev 
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server
> ,nowait -mon chardev=charmonitor,id=monitor,mode=readline
> -rtc base=localtime
> -device 
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x
> 5.0x0 -drive 
> file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
> -device 
> ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=
> 1
> -netdev tap,fd=17,id=hostnet0
> -device 
> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multif
> unction=on,addr=0x3.0x0
> -chardev pty,id=charserial0
> -device isa-serial,chardev=charserial0,id=serial0
> -chardev spicevmc,id=charchannel0,name=vdagent
> -device 
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=chann
> el0,name=com.redhat.spice.0

I tried the virtio-serial pieces with qemu.git and a RHEL6 guest.  The guest was able to see the "com.redhat.spice.0" port.  This suggests the problem was either fixed since QEMU 0.15 or that it only affects the Windows virtio drivers.

> -usb -device usb-tablet,id=input0
> -spice port=5900,addr=0.0.0.0,disable-ticketing
> -vga qxl -global qxl-vga.vram_size=67108864 -device 
> virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> 
> 
> 
> 2). In Guest Windows XP OS
> 
> 
> When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> 
> 
> VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> 
> I added the following trace and the value of nListSize is ZERO.
> TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", 
> __FUNCTION__,nListSize);
> 
> 
> So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> Let me know if you need further information. Thanks.

I suggest trying qemu-kvm 1.0 or qemu-kvm.git because the issue may have been fixed since 0.15.

If the issue is still present, you could use git-bisect(1) to find the commit that caused behavior to change between 0.14 and 0.15.

Stefan

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  9:32                         ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-16  9:48                           ` Stefan Hajnoczi
  2012-01-16 10:30                             ` Charles.Tsai-蔡清海-研究�l展部
  2012-01-16  9:50                           ` Dominique Rodrigues
  1 sibling, 1 reply; 50+ messages in thread
From: Stefan Hajnoczi @ 2012-01-16  9:48 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: spice-devel,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, Vadim Rozenfeld, qemu-devel

2012/1/16 Charles.Tsai-蔡清海-研究發展部 <charles.tsai@cloudena.com>:
> We need  the spice support in Qemu. Does qemu-kvm 1.0 support for spice?

I believe so.

Stefan

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  9:32                         ` Charles.Tsai-蔡清海-研究發展部
  2012-01-16  9:48                           ` Stefan Hajnoczi
@ 2012-01-16  9:50                           ` Dominique Rodrigues
  2012-01-16 10:09                             ` Charles.Tsai-蔡清海-研究發展部
  1 sibling, 1 reply; 50+ messages in thread
From: Dominique Rodrigues @ 2012-01-16  9:50 UTC (permalink / raw)
  To: "Charles.Tsai-蔡清海-研究發展部"
  Cc: qemu-devel, Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Vadim Rozenfeld, spice-devel


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

I currently use qemu-1.0 and I confirm that this version works fine with 
SPICE.

Regards,


        Dominique Rodrigues

nanoClouD <http://www.nanocloud.com>
8, rue Lemercier
75017 Paris
France
standard : +33 1 77 69 64 38
529 002 743 R.C.S. Paris

Le 16/01/2012 10:32, Charles.Tsai-蔡清海-研究發展部 a écrit :
> Stefan,
>
> We need  the spice support in Qemu. Does qemu-kvm 1.0 support for spice?
>
> -----Original Message-----
> From: Stefan Hajnoczi [mailto:stefanha@gmail.com]
> Sent: Monday, January 16, 2012 4:37 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Vadim Rozenfeld; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
> Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
>
> On Mon, Jan 16, 2012 at 10:02:22AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
>> Vadim,
>>
>> Thank you for your prompt reply. Here are the information for our test case.
>>
>>
>> 1) we use the following command line to launch the guest OS
>>
>>
>> /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
>> 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
>> d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev
>> socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server
>> ,nowait -mon chardev=charmonitor,id=monitor,mode=readline
>> -rtc base=localtime
>> -device
>> virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x
>> 5.0x0 -drive
>> file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
>> -device
>> ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=
>> 1
>> -netdev tap,fd=17,id=hostnet0
>> -device
>> rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multif
>> unction=on,addr=0x3.0x0
>> -chardev pty,id=charserial0
>> -device isa-serial,chardev=charserial0,id=serial0
>> -chardev spicevmc,id=charchannel0,name=vdagent
>> -device
>> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=chann
>> el0,name=com.redhat.spice.0
> I tried the virtio-serial pieces with qemu.git and a RHEL6 guest.  The guest was able to see the "com.redhat.spice.0" port.  This suggests the problem was either fixed since QEMU 0.15 or that it only affects the Windows virtio drivers.
>
>> -usb -device usb-tablet,id=input0
>> -spice port=5900,addr=0.0.0.0,disable-ticketing
>> -vga qxl -global qxl-vga.vram_size=67108864 -device
>> virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
>>
>>
>>
>> 2). In Guest Windows XP OS
>>
>>
>> When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
>>
>>
>> VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
>>
>> I added the following trace and the value of nListSize is ZERO.
>> TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n",
>> __FUNCTION__,nListSize);
>>
>>
>> So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
>> Let me know if you need further information. Thanks.
> I suggest trying qemu-kvm 1.0 or qemu-kvm.git because the issue may have been fixed since 0.15.
>
> If the issue is still present, you could use git-bisect(1) to find the commit that caused behavior to change between 0.14 and 0.15.
>
> Stefan
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel

[-- Attachment #1.1.2.1: Type: text/html, Size: 4870 bytes --]

[-- Attachment #1.1.2.2: nanologo_small.png --]
[-- Type: image/png, Size: 22727 bytes --]

[-- Attachment #1.2: dominique_rodrigues.vcf --]
[-- Type: text/x-vcard, Size: 309 bytes --]

begin:vcard
fn:Dominique Rodrigues
n:Rodrigues;Dominique
org:nanoClouD
adr:;;8, rue Lemercier;Paris;;75017;France
email;internet:dominique.rodrigues@nanocloud.com
title:Directeur Technique
tel;work:+33 (0) 1 77 69 64 38
tel;cell:+33 (0) 6 28 52 37 70
url:www.nanocloud.com
version:2.1
end:vcard


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3710 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  9:50                           ` Dominique Rodrigues
@ 2012-01-16 10:09                             ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 0 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-16 10:09 UTC (permalink / raw)
  To: Dominique Rodrigues
  Cc: qemu-devel, Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Vadim Rozenfeld, spice-devel


[-- Attachment #1.1: Type: text/plain, Size: 4018 bytes --]

Dominique,

 

Thank you for your information and we will try it here.

 

From: Dominique Rodrigues [mailto:dominique.rodrigues@nanocloud.com] 
Sent: Monday, January 16, 2012 5:51 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Vadim Rozenfeld; qemu-devel
Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

 

I currently use qemu-1.0 and I confirm that this version works fine with SPICE.

Regards,


Dominique Rodrigues


  <http://www.nanocloud.com> 
8, rue Lemercier
75017 Paris
France
standard : +33 1 77 69 64 38
529 002 743 R.C.S. Paris


Le 16/01/2012 10:32, Charles.Tsai-蔡清海-研究發展部 a écrit : 

Stefan,
 
We need  the spice support in Qemu. Does qemu-kvm 1.0 support for spice?
 
-----Original Message-----
From: Stefan Hajnoczi [mailto:stefanha@gmail.com] 
Sent: Monday, January 16, 2012 4:37 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Vadim Rozenfeld; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
 
On Mon, Jan 16, 2012 at 10:02:22AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:

	Vadim,
	 
	Thank you for your prompt reply. Here are the information for our test case.
	 
	 
	1) we use the following command line to launch the guest OS
	 
	 
	/usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 
	1,sockets=1,cores=1,threads=1 -name win_xp -uuid 
	d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev 
	socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server
	,nowait -mon chardev=charmonitor,id=monitor,mode=readline
	-rtc base=localtime
	-device 
	virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x
	5.0x0 -drive 
	file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
	-device 
	ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=
	1
	-netdev tap,fd=17,id=hostnet0
	-device 
	rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multif
	unction=on,addr=0x3.0x0
	-chardev pty,id=charserial0
	-device isa-serial,chardev=charserial0,id=serial0
	-chardev spicevmc,id=charchannel0,name=vdagent
	-device 
	virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=chann
	el0,name=com.redhat.spice.0

 
I tried the virtio-serial pieces with qemu.git and a RHEL6 guest.  The guest was able to see the "com.redhat.spice.0" port.  This suggests the problem was either fixed since QEMU 0.15 or that it only affects the Windows virtio drivers.
 

	-usb -device usb-tablet,id=input0
	-spice port=5900,addr=0.0.0.0,disable-ticketing
	-vga qxl -global qxl-vga.vram_size=67108864 -device 
	virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
	 
	 
	 
	2). In Guest Windows XP OS
	 
	 
	When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
	 
	 
	VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
	 
	I added the following trace and the value of nListSize is ZERO.
	TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", 
	__FUNCTION__,nListSize);
	 
	 
	So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
	Let me know if you need further information. Thanks.

 
I suggest trying qemu-kvm 1.0 or qemu-kvm.git because the issue may have been fixed since 0.15.
 
If the issue is still present, you could use git-bisect(1) to find the commit that caused behavior to change between 0.14 and 0.15.
 
Stefan
_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[-- Attachment #1.2: Type: text/html, Size: 11812 bytes --]

[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 2121 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  9:48                           ` Stefan Hajnoczi
@ 2012-01-16 10:30                             ` Charles.Tsai-蔡清海-研究�l展部
  2012-01-16 10:48                               ` Stefan Hajnoczi
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究�l展部 @ 2012-01-16 10:30 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: spice-devel,
	Alex
	Huang-�S必�t-研究�l展部,
	Alon Levy, Vadim Rozenfeld, qemu-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 680 bytes --]

Stefan,

Can I replace both vireo-pci.c virtio-serial.h files from Qemu 1.0 source tree?
Both files are to initialize the vioserial device when launching a VM.


-----Original Message-----
From: Stefan Hajnoczi [mailto:stefanha@gmail.com] 
Sent: Monday, January 16, 2012 5:49 PM
To: Charles.Tsai-²ÌÇ庣-Ñо¿°lÕ¹²¿
Cc: Vadim Rozenfeld; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-üS±ØÙt-Ñо¿°lÕ¹²¿; qemu-devel
Subject: Re: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012/1/16 Charles.Tsai-²ÌÇ庣-Ñо¿°lÕ¹²¿ <charles.tsai@cloudena.com>:
> We need  the spice support in Qemu. Does qemu-kvm 1.0 support for spice?

I believe so.

Stefan

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16 10:30                             ` Charles.Tsai-蔡清海-研究�l展部
@ 2012-01-16 10:48                               ` Stefan Hajnoczi
  0 siblings, 0 replies; 50+ messages in thread
From: Stefan Hajnoczi @ 2012-01-16 10:48 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究�l展部
  Cc: spice-devel,
	Alex
	Huang-�S必�t-研究�l展部,
	Alon Levy, Vadim Rozenfeld, qemu-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GB2312, Size: 420 bytes --]

2012/1/16 Charles.Tsai-²ÌÇ庣-Ñо¿°lÕ¹²¿ <charles.tsai@cloudena.com>:
> Can I replace both vireo-pci.c virtio-serial.h files from Qemu 1.0 source tree?
> Both files are to initialize the vioserial device when launching a VM.

I suspect that will not work due to larger scale refactoring and
changes that have affected the codebase.  It's probably best to
recompile the full qemu-kvm 1.0 source release.

Stefan

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  9:17                         ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-16 21:27                           ` Vadim Rozenfeld
  2012-01-17  2:03                             ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-16 21:27 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel, spice-devel

On Mon, 2012-01-16 at 17:17 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> I just ran the Qemu monitor to get the PCI information. The information is listed belowe.
> From the listed information, I did not see anything wrong with the BAR0.
> -----------
Thank you.

> > 
> > 2). In Guest Windows XP OS
> >
SP3?
Can you try reproducing this problem on Win7?

Best regards,
Vadim. 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16  2:02                     ` Charles.Tsai-蔡清海-研究發展部
  2012-01-16  7:13                       ` Vadim Rozenfeld
  2012-01-16  8:37                       ` Stefan Hajnoczi
@ 2012-01-17  1:50                       ` Michael Roth
  2012-01-17 20:56                         ` Vadim Rozenfeld
  2 siblings, 1 reply; 50+ messages in thread
From: Michael Roth @ 2012-01-17  1:50 UTC (permalink / raw)
  To: "Charles.Tsai-蔡清海-研究發展部"
  Cc: Stefan Hajnoczi, qemu-devel, Alon Levy, Vadim Rozenfeld,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
>
> Thank you for your prompt reply. Here are the information for our test case.
>
>
> 1) we use the following command line to launch the guest OS
>
>
> /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name win_xp -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=readline
> -rtc base=localtime
> -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0
> -drive file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
> -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
> -netdev tap,fd=17,id=hostnet0
> -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multifunction=on,addr=0x3.0x0
> -chardev pty,id=charserial0
> -device isa-serial,chardev=charserial0,id=serial0
> -chardev spicevmc,id=charchannel0,name=vdagent
> -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
> -usb -device usb-tablet,id=input0
> -spice port=5900,addr=0.0.0.0,disable-ticketing
> -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
>
>
>
> 2). In Guest Windows XP OS
>
>
> When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
>
>
> VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
>
> I added the following trace and the value of nListSize is ZERO.
> TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", __FUNCTION__,nListSize);
>
>
> So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> Let me know if you need further information. Thanks.
>

Hi Charles,

What versions of the virtio-win drivers are you using?

I've been testing virtio-serial on windows using the latest qemu.git 
(1.0). Linux guests work fine, but I've been having various issues with 
Windows 7, XP SP3, and Server 2008 R1. XP SP3 works intermittently for 
me using RHEL6.0 virtio-win, as well as the drivers at:

http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/

But I've been getting a mix of issues such as guest hangs, vioser-test 
failing to enumerate any virtio-serial devices, or various non-critical 
error messages from qemu that seem to coincide with the channel being 
open/closed (occasionally resulting in the channel becoming unresponsive).

Do any of these seem similar to the behaviour you're seeing? If so I'll 
see if the issues go away on 0.14.0 and follow-up with a git bisect.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-16 21:27                           ` Vadim Rozenfeld
@ 2012-01-17  2:03                             ` Charles.Tsai-蔡清海-研究發展部
  2012-01-17 20:59                               ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-17  2:03 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel, spice-devel

Vadim,

I am sorry that it was my mistake because I did not see there was a PIC device which was  created with no  device driver installed.
Instead of updating the driver, I ran the hardware installation wizard to install the Vioserial driver.
As such, the system  could not install the device for me since it was taken over by another device already.
Thank you for your help and I learned a lot about how a hardware device is virtualized by Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Tuesday, January 17, 2012 5:28 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Stefan Hajnoczi; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
Subject: RE: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Mon, 2012-01-16 at 17:17 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> I just ran the Qemu monitor to get the PCI information. The information is listed belowe.
> From the listed information, I did not see anything wrong with the BAR0.
> -----------
Thank you.

> > 
> > 2). In Guest Windows XP OS
> >
SP3?
Can you try reproducing this problem on Win7?

Best regards,
Vadim. 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-17  1:50                       ` Michael Roth
@ 2012-01-17 20:56                         ` Vadim Rozenfeld
  2012-01-19  1:41                           ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-17 20:56 UTC (permalink / raw)
  To: Michael Roth
  Cc: Stefan Hajnoczi, qemu-devel, Alon Levy,
	"Charles.Tsai-蔡清海-研究發展部",
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> >
> > Thank you for your prompt reply. Here are the information for our test case.
> >
> >
> > 1) we use the following command line to launch the guest OS
> >
> >
> > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name win_xp -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,server,nowait
> > -mon chardev=charmonitor,id=monitor,mode=readline
> > -rtc base=localtime
> > -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0
> > -drive file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=raw
> > -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
> > -netdev tap,fd=17,id=hostnet0
> > -device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,multifunction=on,addr=0x3.0x0
> > -chardev pty,id=charserial0
> > -device isa-serial,chardev=charserial0,id=serial0
> > -chardev spicevmc,id=charchannel0,name=vdagent
> > -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0
> > -usb -device usb-tablet,id=input0
> > -spice port=5900,addr=0.0.0.0,disable-ticketing
> > -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> >
> >
> >
> > 2). In Guest Windows XP OS
> >
> >
> > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> >
> >
> > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> >
> > I added the following trace and the value of nListSize is ZERO.
> > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", __FUNCTION__,nListSize);
> >
> >
> > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > Let me know if you need further information. Thanks.
> >
> 
> Hi Charles,
> 
> What versions of the virtio-win drivers are you using?
> 
> I've been testing virtio-serial on windows using the latest qemu.git 
> (1.0). Linux guests work fine, but I've been having various issues with 
> Windows 7, XP SP3, and Server 2008 R1. XP SP3 works intermittently for 
> me using RHEL6.0 virtio-win, as well as the drivers at:
> 

I have seen some virtio serial port initialization problems on 1.0.50.
Will try to look into this problem in the following week(s).

> http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> 
> But I've been getting a mix of issues such as guest hangs, vioser-test 
> failing to enumerate any virtio-serial devices, or various non-critical 
> error messages from qemu that seem to coincide with the channel being 
> open/closed (occasionally resulting in the channel becoming unresponsive).
> 
> Do any of these seem similar to the behaviour you're seeing? If so I'll 
> see if the issues go away on 0.14.0 and follow-up with a git bisect.
> 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-17  2:03                             ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-17 20:59                               ` Vadim Rozenfeld
  0 siblings, 0 replies; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-17 20:59 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel, spice-devel

On Tue, 2012-01-17 at 10:03 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> I am sorry that it was my mistake because I did not see there was a PIC device which was  created with no  device driver installed.
> Instead of updating the driver, I ran the hardware installation wizard to install the Vioserial driver.
> As such, the system  could not install the device for me since it was taken over by another device already.
> Thank you for your help and I learned a lot about how a hardware device is virtualized by Qemu.
> 

You're welcome.
Vadim.
 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
> Sent: Tuesday, January 17, 2012 5:28 AM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Stefan Hajnoczi; Alon Levy; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; qemu-devel
> Subject: RE: [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Mon, 2012-01-16 at 17:17 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I just ran the Qemu monitor to get the PCI information. The information is listed belowe.
> > From the listed information, I did not see anything wrong with the BAR0.
> > -----------
> Thank you.
> 
> > > 
> > > 2). In Guest Windows XP OS
> > >
> SP3?
> Can you try reproducing this problem on Win7?
> 
> Best regards,
> Vadim. 
> 
> 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-17 20:56                         ` Vadim Rozenfeld
@ 2012-01-19  1:41                           ` Charles.Tsai-蔡清海-研究發展部
  2012-01-19  7:58                             ` Vadim Rozenfeld
  2012-01-19  8:09                             ` Stefan Hajnoczi
  0 siblings, 2 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-19  1:41 UTC (permalink / raw)
  To: Vadim Rozenfeld, Michael Roth
  Cc: Stefan Hajnoczi,
	Alex
	Huang-黃必賢-研究發展部,
	Alon Levy, qemu-devel, spice-devel

Vadim,

I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
During the driver installation, the system hung after the driver being installed. After I rebooted the
guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Wednesday, January 18, 2012 4:57 AM
To: Michael Roth
Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> >
> > Thank you for your prompt reply. Here are the information for our test case.
> >
> >
> > 1) we use the following command line to launch the guest OS
> >
> >
> > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 
> > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid 
> > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > -chardev 
> > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,serv
> > er,nowait -mon chardev=charmonitor,id=monitor,mode=readline
> > -rtc base=localtime
> > -device 
> > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=
> > 0x5.0x0 -drive 
> > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=r
> > aw -device 
> > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootinde
> > x=1
> > -netdev tap,fd=17,id=hostnet0
> > -device 
> > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,mult
> > ifunction=on,addr=0x3.0x0
> > -chardev pty,id=charserial0
> > -device isa-serial,chardev=charserial0,id=serial0
> > -chardev spicevmc,id=charchannel0,name=vdagent
> > -device 
> > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=cha
> > nnel0,name=com.redhat.spice.0
> > -usb -device usb-tablet,id=input0
> > -spice port=5900,addr=0.0.0.0,disable-ticketing
> > -vga qxl -global qxl-vga.vram_size=67108864 -device 
> > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0
> > x0
> >
> >
> >
> > 2). In Guest Windows XP OS
> >
> >
> > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> >
> >
> > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> >
> > I added the following trace and the value of nListSize is ZERO.
> > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", 
> > __FUNCTION__,nListSize);
> >
> >
> > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > Let me know if you need further information. Thanks.
> >
> 
> Hi Charles,
> 
> What versions of the virtio-win drivers are you using?
> 
> I've been testing virtio-serial on windows using the latest qemu.git 
> (1.0). Linux guests work fine, but I've been having various issues 
> with Windows 7, XP SP3, and Server 2008 R1. XP SP3 works 
> intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> 

I have seen some virtio serial port initialization problems on 1.0.50.
Will try to look into this problem in the following week(s).

> http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> 
> But I've been getting a mix of issues such as guest hangs, vioser-test 
> failing to enumerate any virtio-serial devices, or various 
> non-critical error messages from qemu that seem to coincide with the 
> channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> 
> Do any of these seem similar to the behaviour you're seeing? If so 
> I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> 




^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19  1:41                           ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-19  7:58                             ` Vadim Rozenfeld
  2012-01-19  8:33                               ` Charles.Tsai-蔡清海-研究發展部
  2012-01-19  8:09                             ` Stefan Hajnoczi
  1 sibling, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-19  7:58 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> During the driver installation, the system hung after the driver being installed. After I rebooted the
> guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> 
On UP or SMP system?
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
> Sent: Wednesday, January 18, 2012 4:57 AM
> To: Michael Roth
> Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > Vadim,
> > >
> > > Thank you for your prompt reply. Here are the information for our test case.
> > >
> > >
> > > 1) we use the following command line to launch the guest OS
> > >
> > >
> > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp 
> > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid 
> > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > -chardev 
> > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,serv
> > > er,nowait -mon chardev=charmonitor,id=monitor,mode=readline
> > > -rtc base=localtime
> > > -device 
> > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=
> > > 0x5.0x0 -drive 
> > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format=r
> > > aw -device 
> > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootinde
> > > x=1
> > > -netdev tap,fd=17,id=hostnet0
> > > -device 
> > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,mult
> > > ifunction=on,addr=0x3.0x0
> > > -chardev pty,id=charserial0
> > > -device isa-serial,chardev=charserial0,id=serial0
> > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > -device 
> > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=cha
> > > nnel0,name=com.redhat.spice.0
> > > -usb -device usb-tablet,id=input0
> > > -spice port=5900,addr=0.0.0.0,disable-ticketing
> > > -vga qxl -global qxl-vga.vram_size=67108864 -device 
> > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0
> > > x0
> > >
> > >
> > >
> > > 2). In Guest Windows XP OS
> > >
> > >
> > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > >
> > >
> > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > >
> > > I added the following trace and the value of nListSize is ZERO.
> > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s (nListSize=%d)\n", 
> > > __FUNCTION__,nListSize);
> > >
> > >
> > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > Let me know if you need further information. Thanks.
> > >
> > 
> > Hi Charles,
> > 
> > What versions of the virtio-win drivers are you using?
> > 
> > I've been testing virtio-serial on windows using the latest qemu.git 
> > (1.0). Linux guests work fine, but I've been having various issues 
> > with Windows 7, XP SP3, and Server 2008 R1. XP SP3 works 
> > intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > 
> 
> I have seen some virtio serial port initialization problems on 1.0.50.
> Will try to look into this problem in the following week(s).
> 
> > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > 
> > But I've been getting a mix of issues such as guest hangs, vioser-test 
> > failing to enumerate any virtio-serial devices, or various 
> > non-critical error messages from qemu that seem to coincide with the 
> > channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > 
> > Do any of these seem similar to the behaviour you're seeing? If so 
> > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > 
> 
> 
> 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19  1:41                           ` Charles.Tsai-蔡清海-研究發展部
  2012-01-19  7:58                             ` Vadim Rozenfeld
@ 2012-01-19  8:09                             ` Stefan Hajnoczi
  2012-01-19 11:25                               ` Alon Levy
  1 sibling, 1 reply; 50+ messages in thread
From: Stefan Hajnoczi @ 2012-01-19  8:09 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: qemu-devel, Michael Roth, Alon Levy, Vadim Rozenfeld,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Thu, Jan 19, 2012 at 09:41:15AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> During the driver installation, the system hung after the driver being installed. After I rebooted the
> guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.

If you need to reproduce the installation hang I suggest using qemu
-snapshot or qemu -drive ...,snapshot=on.  These options prevent changes
made by the guest to the disk image from being permanent.

Once you terminate QEMU the changes will be gone and your disk image
will be unchanged - useful for repeatedly testing these types of issues!

Stefan

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19  7:58                             ` Vadim Rozenfeld
@ 2012-01-19  8:33                               ` Charles.Tsai-蔡清海-研究發展部
  2012-01-19  9:38                                 ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-19  8:33 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

It is SMP system.

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Thursday, January 19, 2012 3:58 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> During the driver installation, the system hung after the driver being 
> installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> 
On UP or SMP system?
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Wednesday, January 18, 2012 4:57 AM
> To: Michael Roth
> Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> qemu-devel
> Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > Vadim,
> > >
> > > Thank you for your prompt reply. Here are the information for our test case.
> > >
> > >
> > > 1) we use the following command line to launch the guest OS
> > >
> > >
> > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > -chardev 
> > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,se
> > > rv er,nowait -mon chardev=charmonitor,id=monitor,mode=readline
> > > -rtc base=localtime
> > > -device
> > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,add
> > > r=
> > > 0x5.0x0 -drive
> > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format
> > > =r
> > > aw -device
> > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootin
> > > de
> > > x=1
> > > -netdev tap,fd=17,id=hostnet0
> > > -device
> > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,mu
> > > lt
> > > ifunction=on,addr=0x3.0x0
> > > -chardev pty,id=charserial0
> > > -device isa-serial,chardev=charserial0,id=serial0
> > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > -device
> > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=c
> > > ha
> > > nnel0,name=com.redhat.spice.0
> > > -usb -device usb-tablet,id=input0
> > > -spice port=5900,addr=0.0.0.0,disable-ticketing
> > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4
> > > .0
> > > x0
> > >
> > >
> > >
> > > 2). In Guest Windows XP OS
> > >
> > >
> > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > >
> > >
> > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > >
> > > I added the following trace and the value of nListSize is ZERO.
> > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > >
> > >
> > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > Let me know if you need further information. Thanks.
> > >
> > 
> > Hi Charles,
> > 
> > What versions of the virtio-win drivers are you using?
> > 
> > I've been testing virtio-serial on windows using the latest qemu.git 
> > (1.0). Linux guests work fine, but I've been having various issues 
> > with Windows 7, XP SP3, and Server 2008 R1. XP SP3 works 
> > intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > 
> 
> I have seen some virtio serial port initialization problems on 1.0.50.
> Will try to look into this problem in the following week(s).
> 
> > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > 
> > But I've been getting a mix of issues such as guest hangs, 
> > vioser-test failing to enumerate any virtio-serial devices, or 
> > various non-critical error messages from qemu that seem to coincide 
> > with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > 
> > Do any of these seem similar to the behaviour you're seeing? If so 
> > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > 
> 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19  8:33                               ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-19  9:38                                 ` Vadim Rozenfeld
  2012-01-19 10:06                                   ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-19  9:38 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver being 
> > installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> > on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,se
> > > > rv er,nowait -mon chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,add
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,format
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootin
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0
> > > > -spice port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest qemu.git 
> > > (1.0). Linux guests work fine, but I've been having various issues 
> > > with Windows 7, XP SP3, and Server 2008 R1. XP SP3 works 
> > > intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to coincide 
> > > with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19  9:38                                 ` Vadim Rozenfeld
@ 2012-01-19 10:06                                   ` Charles.Tsai-蔡清海-研究發展部
  2012-01-19 12:25                                     ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-19 10:06 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon 
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19  8:09                             ` Stefan Hajnoczi
@ 2012-01-19 11:25                               ` Alon Levy
  2012-01-20  1:23                                 ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Alon Levy @ 2012-01-19 11:25 UTC (permalink / raw)
  To: Stefan Hajnoczi
  Cc: qemu-devel, Michael Roth, Vadim Rozenfeld,
	Charles.Tsai-蔡清海-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Thu, Jan 19, 2012 at 08:09:57AM +0000, Stefan Hajnoczi wrote:
> On Thu, Jan 19, 2012 at 09:41:15AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver being installed. After I rebooted the
> > guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> 
> If you need to reproduce the installation hang I suggest using qemu
> -snapshot or qemu -drive ...,snapshot=on.  These options prevent changes
> made by the guest to the disk image from being permanent.
> 
> Once you terminate QEMU the changes will be gone and your disk image
> will be unchanged - useful for repeatedly testing these types of issues!
> 

There is an additional "trick" I use, if you add -no-shutdown then if
you find yourself wanting to save the changes anyway (say you started
with -snapshot but decided you want to keep the changes you have done),
which you can do with "commit virtio0" or "commit ide0" (depending on
the block device), it will allow you to do the commit after you shutdown
the guest, which is easier then trying to get it to unmount the disks.

> Stefan
> 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19 10:06                                   ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-19 12:25                                     ` Vadim Rozenfeld
  2012-01-20  1:25                                       ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-19 12:25 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
>
> It is SMP system.
What about vioserial driver itself?
did you build it from sources or is
it one, available through RHEL channels?

>
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> on Qemu 0.15
>
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> >
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> >
> On UP or SMP system?
> >
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi;
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy;
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > OS on Qemu 0.15
> >
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults
> > > > -chardev
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > >
> > > Hi Charles,
> > >
> > > What versions of the virtio-win drivers are you using?
> > >
> > > I've been testing virtio-serial on windows using the latest
> > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > >
> >
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> >
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > >
> > > But I've been getting a mix of issues such as guest hangs,
> > > vioser-test failing to enumerate any virtio-serial devices, or
> > > various non-critical error messages from qemu that seem to
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > >
> > > Do any of these seem similar to the behaviour you're seeing? If so
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > >
> >
> >
> >
>
>

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19 11:25                               ` Alon Levy
@ 2012-01-20  1:23                                 ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 0 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-20  1:23 UTC (permalink / raw)
  To: Alon Levy, Stefan Hajnoczi
  Cc: spice-devel, Vadim Rozenfeld, qemu-devel,
	Alex
	Huang-黃必賢-研究發展部,
	Michael Roth

Alon,

Thank you for your information and we will use it if we need to find the bug next time.

-----Original Message-----
From: Alon Levy [mailto:alevy@redhat.com] 
Sent: Thursday, January 19, 2012 7:26 PM
To: Stefan Hajnoczi
Cc: Charles.Tsai-蔡清海-研究發展部; qemu-devel; Michael Roth; Vadim Rozenfeld; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, Jan 19, 2012 at 08:09:57AM +0000, Stefan Hajnoczi wrote:
> On Thu, Jan 19, 2012 at 09:41:15AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> 
> If you need to reproduce the installation hang I suggest using qemu 
> -snapshot or qemu -drive ...,snapshot=on.  These options prevent 
> changes made by the guest to the disk image from being permanent.
> 
> Once you terminate QEMU the changes will be gone and your disk image 
> will be unchanged - useful for repeatedly testing these types of issues!
> 

There is an additional "trick" I use, if you add -no-shutdown then if you find yourself wanting to save the changes anyway (say you started with -snapshot but decided you want to keep the changes you have done), which you can do with "commit virtio0" or "commit ide0" (depending on the block device), it will allow you to do the commit after you shutdown the guest, which is easier then trying to get it to unmount the disks.

> Stefan
> 

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-19 12:25                                     ` Vadim Rozenfeld
@ 2012-01-20  1:25                                       ` Charles.Tsai-蔡清海-研究發展部
  2012-01-20 12:47                                         ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-20  1:25 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-20  1:25                                       ` Charles.Tsai-蔡清海-研究發展部
@ 2012-01-20 12:47                                         ` Vadim Rozenfeld
  2012-01-23 13:25                                           ` Charles.Tsai-蔡清海-研究發展部
                                                             ` (2 more replies)
  0 siblings, 3 replies; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-01-20 12:47 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes
have been merged already by Yan into this
public repository.
I will ask to update binaries and sources at
fedoraproject site as well.

Best regards,
Vadim.


----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
>
> It is SMP system.
What about vioserial driver itself?
did you build it from sources or is
it one, available through RHEL channels?

>
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> on Qemu 0.15
>
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> >
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> >
> On UP or SMP system?
> >
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi;
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy;
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > OS on Qemu 0.15
> >
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults
> > > > -chardev
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > >
> > > Hi Charles,
> > >
> > > What versions of the virtio-win drivers are you using?
> > >
> > > I've been testing virtio-serial on windows using the latest
> > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > >
> >
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> >
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > >
> > > But I've been getting a mix of issues such as guest hangs,
> > > vioser-test failing to enumerate any virtio-serial devices, or
> > > various non-critical error messages from qemu that seem to
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > >
> > > Do any of these seem similar to the behaviour you're seeing? If so
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > >
> >
> >
> >
>
>

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-20 12:47                                         ` Vadim Rozenfeld
@ 2012-01-23 13:25                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-02-03  4:00                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-02-04  3:39                                           ` Charles.Tsai-蔡清海-研究發展部
  2 siblings, 0 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-01-23 13:25 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

Thanks. We will download the code from Yan's repository.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim. 
  

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-20 12:47                                         ` Vadim Rozenfeld
  2012-01-23 13:25                                           ` Charles.Tsai-蔡清海-研究發展部
@ 2012-02-03  4:00                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-02-04  3:39                                           ` Charles.Tsai-蔡清海-研究發展部
  2 siblings, 0 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-02-03  4:00 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim. 
  

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-01-20 12:47                                         ` Vadim Rozenfeld
  2012-01-23 13:25                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-02-03  4:00                                           ` Charles.Tsai-蔡清海-研究發展部
@ 2012-02-04  3:39                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-02-04 18:14                                             ` Vadim Rozenfeld
  2 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-02-04  3:39 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部,
	Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.



-----Original Message-----
From: Charles.Tsai-蔡清海-研究發展部 
Sent: Friday, February 03, 2012 12:01 PM
To: 'Vadim Rozenfeld'
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim. 
  

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-02-04  3:39                                           ` Charles.Tsai-蔡清海-研究發展部
@ 2012-02-04 18:14                                             ` Vadim Rozenfeld
  2012-02-06 13:08                                               ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-02-04 18:14 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Thanks,
I'll check this problem.
Vadim.

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Saturday, February 4, 2012 5:39:26 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.



-----Original Message-----
From: Charles.Tsai-蔡清海-研究發展部
Sent: Friday, February 03, 2012 12:01 PM
To: 'Vadim Rozenfeld'
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim.


----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
>
> It is SMP system.
What about vioserial driver itself?
did you build it from sources or is
it one, available through RHEL channels?

>
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> on Qemu 0.15
>
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> >
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> >
> On UP or SMP system?
> >
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi;
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy;
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > OS on Qemu 0.15
> >
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults
> > > > -chardev
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > >
> > > Hi Charles,
> > >
> > > What versions of the virtio-win drivers are you using?
> > >
> > > I've been testing virtio-serial on windows using the latest
> > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > >
> >
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> >
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > >
> > > But I've been getting a mix of issues such as guest hangs,
> > > vioser-test failing to enumerate any virtio-serial devices, or
> > > various non-critical error messages from qemu that seem to
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > >
> > > Do any of these seem similar to the behaviour you're seeing? If so
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > >
> >
> >
> >
>
>

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-02-04 18:14                                             ` Vadim Rozenfeld
@ 2012-02-06 13:08                                               ` Charles.Tsai-蔡清海-研究發展部
  2012-02-07 19:06                                                 ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-02-06 13:08 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

I did the same test again today and no luck to made it work.
Let us what you find since we might have missed some points when we did the test.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Sunday, February 05, 2012 2:14 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Thanks,
I'll check this problem.
Vadim.

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Saturday, February 4, 2012 5:39:26 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.



-----Original Message-----
From: Charles.Tsai-蔡清海-研究發展部
Sent: Friday, February 03, 2012 12:01 PM
To: 'Vadim Rozenfeld'
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim. 
  

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-02-06 13:08                                               ` Charles.Tsai-蔡清海-研究發展部
@ 2012-02-07 19:06                                                 ` Vadim Rozenfeld
  2012-02-08  2:39                                                   ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-02-07 19:06 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

I have tried to reproduce the problem several times without success.

QEMU:
QEMU 1.0.50 from git://git.qemu.org/qemu.git
,and
qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git

My guest info:
OS Name:                   Microsoft Windows 7 Enterprise
OS Version:                6.1.7600 N/A Build 7600

QEMU command line:
sudo /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc base=localtime -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0 -drive file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -netdev tap,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifunction=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm

Drivers:
Both, MS signed from RHEL6.2 virtio-win RPM, as well as
compiled by myself with the sources from our internal repository
(which contains absolutely the same code as in Yan's repository).



----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Monday, February 6, 2012 3:08:55 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I did the same test again today and no luck to made it work.
Let us what you find since we might have missed some points when we did the test.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Sunday, February 05, 2012 2:14 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Thanks,
I'll check this problem.
Vadim.

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Saturday, February 4, 2012 5:39:26 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.



-----Original Message-----
From: Charles.Tsai-蔡清海-研究發展部
Sent: Friday, February 03, 2012 12:01 PM
To: 'Vadim Rozenfeld'
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim.


----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
>
> It is SMP system.
What about vioserial driver itself?
did you build it from sources or is
it one, available through RHEL channels?

>
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> on Qemu 0.15
>
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> >
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> >
> On UP or SMP system?
> >
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi;
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy;
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > OS on Qemu 0.15
> >
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults
> > > > -chardev
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > >
> > > Hi Charles,
> > >
> > > What versions of the virtio-win drivers are you using?
> > >
> > > I've been testing virtio-serial on windows using the latest
> > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > >
> >
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> >
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > >
> > > But I've been getting a mix of issues such as guest hangs,
> > > vioser-test failing to enumerate any virtio-serial devices, or
> > > various non-critical error messages from qemu that seem to
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > >
> > > Do any of these seem similar to the behaviour you're seeing? If so
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > >
> >
> >
> >
>
>

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-02-07 19:06                                                 ` Vadim Rozenfeld
@ 2012-02-08  2:39                                                   ` Charles.Tsai-蔡清海-研究發展部
  2012-02-08  7:47                                                     ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-02-08  2:39 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

Thanks. I tested Windows guest OS driver the over qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and it worked.
The latest Windows guest driver from (https://github.com/YanVugenfirer/) seems to have to work with Qemu 1.0.50. My previous test ran over Qemu 1.0 and that was why it failed to work.

As you mentioned, the latest driver from (https://github.com/YanVugenfirer/) is much more stable than the old one. But those drivers must work with Qemu 1.0.50 which was not verified to be stable. Do you think Qemu 1.0.50 is stable to be used? Please give us a recommendation.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Wednesday, February 08, 2012 3:06 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

I have tried to reproduce the problem several times without success.

QEMU:
QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git

My guest info:
OS Name:                   Microsoft Windows 7 Enterprise 
OS Version:                6.1.7600 N/A Build 7600

QEMU command line:
sudo /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc base=localtime -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0 -drive file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -netdev tap,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifunction=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm

Drivers:
Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by myself with the sources from our internal repository (which contains absolutely the same code as in Yan's repository). 



----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Monday, February 6, 2012 3:08:55 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I did the same test again today and no luck to made it work.
Let us what you find since we might have missed some points when we did the test.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Sunday, February 05, 2012 2:14 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Thanks,
I'll check this problem.
Vadim.

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Saturday, February 4, 2012 5:39:26 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.



-----Original Message-----
From: Charles.Tsai-蔡清海-研究發展部
Sent: Friday, February 03, 2012 12:01 PM
To: 'Vadim Rozenfeld'
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim. 
  

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-02-08  2:39                                                   ` Charles.Tsai-蔡清海-研究發展部
@ 2012-02-08  7:47                                                     ` Vadim Rozenfeld
  2012-02-08  9:23                                                       ` David Jaša
  2012-03-19  6:29                                                       ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 2 replies; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-02-08  7:47 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

I'm afraid to give you any recommendations regarding QEMU stability.
I usually work with qemu-kvm repository. But we are always doing WHQL
process on RHEL platform only.

Maybe someone from the SPICE team can comment on your question?

Best regards,
Vadim.

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Wednesday, February 8, 2012 4:39:22 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

Thanks. I tested Windows guest OS driver the over qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and it worked.
The latest Windows guest driver from (https://github.com/YanVugenfirer/) seems to have to work with Qemu 1.0.50. My previous test ran over Qemu 1.0 and that was why it failed to work.

As you mentioned, the latest driver from (https://github.com/YanVugenfirer/) is much more stable than the old one. But those drivers must work with Qemu 1.0.50 which was not verified to be stable. Do you think Qemu 1.0.50 is stable to be used? Please give us a recommendation.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Wednesday, February 08, 2012 3:06 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

I have tried to reproduce the problem several times without success.

QEMU:
QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git

My guest info:
OS Name:                   Microsoft Windows 7 Enterprise
OS Version:                6.1.7600 N/A Build 7600

QEMU command line:
sudo /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc base=localtime -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0 -drive file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -netdev tap,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifunction=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm

Drivers:
Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by myself with the sources from our internal repository (which contains absolutely the same code as in Yan's repository).



----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Monday, February 6, 2012 3:08:55 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I did the same test again today and no luck to made it work.
Let us what you find since we might have missed some points when we did the test.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Sunday, February 05, 2012 2:14 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Thanks,
I'll check this problem.
Vadim.

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Saturday, February 4, 2012 5:39:26 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.



-----Original Message-----
From: Charles.Tsai-蔡清海-研究發展部
Sent: Friday, February 03, 2012 12:01 PM
To: 'Vadim Rozenfeld'
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim.


----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
>
> It is SMP system.
What about vioserial driver itself?
did you build it from sources or is
it one, available through RHEL channels?

>
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> on Qemu 0.15
>
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> >
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> >
> On UP or SMP system?
> >
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi;
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy;
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > OS on Qemu 0.15
> >
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults
> > > > -chardev
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > >
> > > Hi Charles,
> > >
> > > What versions of the virtio-win drivers are you using?
> > >
> > > I've been testing virtio-serial on windows using the latest
> > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > >
> >
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> >
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > >
> > > But I've been getting a mix of issues such as guest hangs,
> > > vioser-test failing to enumerate any virtio-serial devices, or
> > > various non-critical error messages from qemu that seem to
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > >
> > > Do any of these seem similar to the behaviour you're seeing? If so
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > >
> >
> >
> >
>
>

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-02-08  7:47                                                     ` Vadim Rozenfeld
@ 2012-02-08  9:23                                                       ` David Jaša
  2012-03-19  6:29                                                       ` Charles.Tsai-蔡清海-研究發展部
  1 sibling, 0 replies; 50+ messages in thread
From: David Jaša @ 2012-02-08  9:23 UTC (permalink / raw)
  To: Charles.Tsai
  Cc: Paul
	Lu-盧偉智-研究發展部,
	Michael Roth, qemu-devel, Vadim Rozenfeld, spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim Rozenfeld píše v St 08. 02. 2012 v 02:47 -0500:
> I'm afraid to give you any recommendations regarding QEMU stability.
> I usually work with qemu-kvm repository. But we are always doing WHQL 
> process on RHEL platform only.
> 
> Maybe someone from the SPICE team can comment on your question?
> 

We also focus our testing on RHEL components. We have done some new
feature testing on Fedora with virt-preview repo:
http://repos.fedorapeople.org/repos/jforbes/virt-preview/
but it still says nothing about qemu stability for your purposes and the
qemu version is still 1.0.

David

> Best regards,
> Vadim.    
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
> Sent: Wednesday, February 8, 2012 4:39:22 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> Thanks. I tested Windows guest OS driver the over qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and it worked.
> The latest Windows guest driver from (https://github.com/YanVugenfirer/) seems to have to work with Qemu 1.0.50. My previous test ran over Qemu 1.0 and that was why it failed to work.
> 
> As you mentioned, the latest driver from (https://github.com/YanVugenfirer/) is much more stable than the old one. But those drivers must work with Qemu 1.0.50 which was not verified to be stable. Do you think Qemu 1.0.50 is stable to be used? Please give us a recommendation.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
> Sent: Wednesday, February 08, 2012 3:06 AM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
> Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> I have tried to reproduce the problem several times without success.
> 
> QEMU:
> QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> 
> My guest info:
> OS Name:                   Microsoft Windows 7 Enterprise 
> OS Version:                6.1.7600 N/A Build 7600
> 
> QEMU command line:
> sudo /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc base=localtime -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0 -drive file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -netdev tap,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifunction=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm
> 
> Drivers:
> Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by myself with the sources from our internal repository (which contains absolutely the same code as in Yan's repository). 
> 
> 
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
> Sent: Monday, February 6, 2012 3:08:55 PM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> I did the same test again today and no luck to made it work.
> Let us what you find since we might have missed some points when we did the test.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Sunday, February 05, 2012 2:14 AM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
> Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Thanks,
> I'll check this problem.
> Vadim.
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
> Sent: Saturday, February 4, 2012 5:39:26 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.
> 
> 
> 
> -----Original Message-----
> From: Charles.Tsai-蔡清海-研究發展部
> Sent: Friday, February 03, 2012 12:01 PM
> To: 'Vadim Rozenfeld'
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
> When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.
> 
> Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Friday, January 20, 2012 8:48 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> This code is slightly buggy.
> Please try Yan's repository
> at github (https://github.com/YanVugenfirer/).
> I believe that the most critical changes have been merged already by Yan into this public repository.
> I will ask to update binaries and sources at fedoraproject site as well.
> 
> Best regards,
> Vadim. 
>   
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
> Sent: Friday, January 20, 2012 3:25:51 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> We downloaded the driver source from the following website.
> ===========================================================
> wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 8:25 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Just to be sure that we are on the same page:
> could you tell me about the origin of the source?
> Is it the latest from the Yan's repository at github.com?
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
> Sent: Thursday, January 19, 2012 12:06:16 PM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 5:39 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > It is SMP system.
> What about vioserial driver itself? 
> did you build it from sources or is
> it one, available through RHEL channels?
> 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 3:58 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> > on Qemu 0.15
> > 
> > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > Vadim,
> > > 
> > > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > > During the driver installation, the system hung after the driver 
> > > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > > 
> > On UP or SMP system?
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > To: Michael Roth
> > > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > > qemu-devel
> > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > > OS on Qemu 0.15
> > > 
> > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > > Vadim,
> > > > >
> > > > > Thank you for your prompt reply. Here are the information for our test case.
> > > > >
> > > > >
> > > > > 1) we use the following command line to launch the guest OS
> > > > >
> > > > >
> > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > > -chardev 
> > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > > se rv er,nowait -mon
> > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > -rtc base=localtime
> > > > > -device
> > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > > dd
> > > > > r=
> > > > > 0x5.0x0 -drive
> > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > > at
> > > > > =r
> > > > > aw -device
> > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > > in
> > > > > de
> > > > > x=1
> > > > > -netdev tap,fd=17,id=hostnet0
> > > > > -device
> > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > > mu
> > > > > lt
> > > > > ifunction=on,addr=0x3.0x0
> > > > > -chardev pty,id=charserial0
> > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > -device
> > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > > =c
> > > > > ha
> > > > > nnel0,name=com.redhat.spice.0
> > > > > -usb -device usb-tablet,id=input0 -spice 
> > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > > x4
> > > > > .0
> > > > > x0
> > > > >
> > > > >
> > > > >
> > > > > 2). In Guest Windows XP OS
> > > > >
> > > > >
> > > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > > >
> > > > >
> > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > > >
> > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > >
> > > > >
> > > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > > Let me know if you need further information. Thanks.
> > > > >
> > > > 
> > > > Hi Charles,
> > > > 
> > > > What versions of the virtio-win drivers are you using?
> > > > 
> > > > I've been testing virtio-serial on windows using the latest 
> > > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > > 
> > > 
> > > I have seen some virtio serial port initialization problems on 1.0.50.
> > > Will try to look into this problem in the following week(s).
> > > 
> > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > > 
> > > > But I've been getting a mix of issues such as guest hangs, 
> > > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > > various non-critical error messages from qemu that seem to 
> > > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > > 
> > > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > > 
> > > 
> > > 
> > > 
> > 
> > 
> 
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel

-- 

David Jaša, RHCE

SPICE QE based in Brno
GPG Key:     22C33E24 
Fingerprint: 513A 060B D1B4 2A72 7F0D 0278 B125 CD00 22C3 3E24

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-02-08  7:47                                                     ` Vadim Rozenfeld
  2012-02-08  9:23                                                       ` David Jaša
@ 2012-03-19  6:29                                                       ` Charles.Tsai-蔡清海-研究發展部
  2012-03-19  9:16                                                         ` Vadim Rozenfeld
  2012-03-19 10:12                                                         ` Christophe Fergeau
  1 sibling, 2 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-03-19  6:29 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Hi Vadim,

	We recently encountered with many issues with new Windows Virio driver running on Qemu 1.0 and Qemu 1.0.50.
	My initial investigation was found that the new Viro driver could not be installed  before Qemu 1.0.50.
	But my colleague right now can install the new Virio driver on Qemu 1.0. Such a finding is quite a bit surprise to me.

	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we found the Virio driver failed to work after disabling and enabling the driver a few times. 
	However, the failure case largely depends on the type of machine. On my machine, I did not see such a problem.

	Here are a few of questions that I want to clarify for us.

	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the current head branch)?
	2. Does your QA team verify the new VirtIo driver prior Qemu 1.0.50? Do you recommend us to do such a test or debugging?

	3. When we disable and enable the new VirtIO driver several times on either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after enabling the new VirtIO driver. 
	   What we found in this particular case is that the VirtIO driver was blocked inside the DPC routine where the driver tried to ACK the interrupt. Based on my colleague's 		   observation, the I/O read from DPC was not trapped by the front-end driver(a Linux driver implemented for VirtIO)? Do you have any idea why this could happen? Also, did you 	   	   find similar issues by you or your QA?

	Please let us know these as soon as possible since we have a big trouble to make the Virio driver(new and old driver) work stably in any Qemu official release 
	including Qemu 1.0.50.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Wednesday, February 08, 2012 3:47 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

I'm afraid to give you any recommendations regarding QEMU stability.
I usually work with qemu-kvm repository. But we are always doing WHQL process on RHEL platform only.

Maybe someone from the SPICE team can comment on your question?

Best regards,
Vadim.    

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Wednesday, February 8, 2012 4:39:22 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

Thanks. I tested Windows guest OS driver the over qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and it worked.
The latest Windows guest driver from (https://github.com/YanVugenfirer/) seems to have to work with Qemu 1.0.50. My previous test ran over Qemu 1.0 and that was why it failed to work.

As you mentioned, the latest driver from (https://github.com/YanVugenfirer/) is much more stable than the old one. But those drivers must work with Qemu 1.0.50 which was not verified to be stable. Do you think Qemu 1.0.50 is stable to be used? Please give us a recommendation.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Wednesday, February 08, 2012 3:06 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

I have tried to reproduce the problem several times without success.

QEMU:
QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git

My guest info:
OS Name:                   Microsoft Windows 7 Enterprise 
OS Version:                6.1.7600 N/A Build 7600

QEMU command line:
sudo /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc base=localtime -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x0 -drive file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,format=qcow2 -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -netdev tap,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifunction=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -chardev spicevmc,id=charchannel0,name=vdagent -device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm

Drivers:
Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by myself with the sources from our internal repository (which contains absolutely the same code as in Yan's repository). 



----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Monday, February 6, 2012 3:08:55 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I did the same test again today and no luck to made it work.
Let us what you find since we might have missed some points when we did the test.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Sunday, February 05, 2012 2:14 AM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Thanks,
I'll check this problem.
Vadim.

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul Lu-盧偉智-研究發展部" <paul.lu@cloudena.com>
Sent: Saturday, February 4, 2012 5:39:26 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We tested the free build driver on 32-bit Windows 7 and the symptom was the same. In other words, the latest driver source from https://github.com/YanVugenfirer/ is buggy and it was not workable at all.



-----Original Message-----
From: Charles.Tsai-蔡清海-研究發展部
Sent: Friday, February 03, 2012 12:01 PM
To: 'Vadim Rozenfeld'
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

I downloaded the latest Windows guest driver code from (https://github.com/YanVugenfirer/) and built the test binary driver code.
When I tested the release build Vioserial driver on 64-bit Windows 7, the driver seemed to wait for something to happen and the update driver Windows dialog simply just stayed in busy state. Finally, the Windows system entered a busy loop. However, if I tested the debugging build driver, the driver could be installed. But it took for a long time to complete.

Our installed Qemu is 1.0. Is there Qemu build requirement so that we can verify the vioserial driver? From my test, the latest code from (https://github.com/YanVugenfirer/) seemed to be worst than the one we tested before. Let me know if we did anything wrong.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Friday, January 20, 2012 8:48 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

This code is slightly buggy.
Please try Yan's repository
at github (https://github.com/YanVugenfirer/).
I believe that the most critical changes have been merged already by Yan into this public repository.
I will ask to update binaries and sources at fedoraproject site as well.

Best regards,
Vadim. 
  

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Friday, January 20, 2012 3:25:51 AM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We downloaded the driver source from the following website.
===========================================================
wget --no-check-certificate https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-win-prewhql-0.1-15-sources.zip

-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 8:25 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Just to be sure that we are on the same page:
could you tell me about the origin of the source?
Is it the latest from the Yan's repository at github.com?

----- Original Message -----
From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy" <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>
Sent: Thursday, January 19, 2012 12:06:16 PM
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

Vadim,

We built it from the driver source. Up to this moment, we always use the same binary to test Qemu.


-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
Sent: Thursday, January 19, 2012 5:39 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> It is SMP system.
What about vioserial driver itself? 
did you build it from sources or is
it one, available through RHEL channels?

> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 3:58 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest.
> > During the driver installation, the system hung after the driver 
> > being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during the driver installation.
> > 
> On UP or SMP system?
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, January 18, 2012 4:57 AM
> > To: Michael Roth
> > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; 
> > qemu-devel
> > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > >
> > > > Thank you for your prompt reply. Here are the information for our test case.
> > > >
> > > >
> > > > 1) we use the following command line to launch the guest OS
> > > >
> > > >
> > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > -chardev 
> > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > se rv er,nowait -mon
> > > > chardev=charmonitor,id=monitor,mode=readline
> > > > -rtc base=localtime
> > > > -device
> > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > dd
> > > > r=
> > > > 0x5.0x0 -drive
> > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > at
> > > > =r
> > > > aw -device
> > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > in
> > > > de
> > > > x=1
> > > > -netdev tap,fd=17,id=hostnet0
> > > > -device
> > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > mu
> > > > lt
> > > > ifunction=on,addr=0x3.0x0
> > > > -chardev pty,id=charserial0
> > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > -device
> > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > =c
> > > > ha
> > > > nnel0,name=com.redhat.spice.0
> > > > -usb -device usb-tablet,id=input0 -spice 
> > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > x4
> > > > .0
> > > > x0
> > > >
> > > >
> > > >
> > > > 2). In Guest Windows XP OS
> > > >
> > > >
> > > > When the following callback function of the vioserial device  is called in guest OS. The allocated resources is empty.
> > > >
> > > >
> > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the I/O address of the vioserial device and map the physical address to the logical address space.
> > > >
> > > > I added the following trace and the value of nListSize is ZERO.
> > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > >
> > > >
> > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15 seemed to be broken in vioserial device.
> > > > Let me know if you need further information. Thanks.
> > > >
> > > 
> > > Hi Charles,
> > > 
> > > What versions of the virtio-win drivers are you using?
> > > 
> > > I've been testing virtio-serial on windows using the latest 
> > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3 
> > > works intermittently for me using RHEL6.0 virtio-win, as well as the drivers at:
> > > 
> > 
> > I have seen some virtio serial port initialization problems on 1.0.50.
> > Will try to look into this problem in the following week(s).
> > 
> > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > 
> > > But I've been getting a mix of issues such as guest hangs, 
> > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > various non-critical error messages from qemu that seem to 
> > > coincide with the channel being open/closed (occasionally resulting in the channel becoming unresponsive).
> > > 
> > > Do any of these seem similar to the behaviour you're seeing? If so 
> > > I'll see if the issues go away on 0.14.0 and follow-up with a git bisect.
> > > 
> > 
> > 
> > 
> 
> 



^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19  6:29                                                       ` Charles.Tsai-蔡清海-研究發展部
@ 2012-03-19  9:16                                                         ` Vadim Rozenfeld
  2012-03-19 11:16                                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-03-19 10:12                                                         ` Christophe Fergeau
  1 sibling, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-03-19  9:16 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Monday, March 19, 2012 08:29:41 AM Charles.Tsai-蔡清海-研究發展部 wrote:
> Hi Vadim,
> 
> 	We recently encountered with many issues with new Windows Virio driver
> running on Qemu 1.0 and Qemu 1.0.50. My initial investigation was found
> that the new Viro driver could not be installed  before Qemu 1.0.50. But
> my colleague right now can install the new Virio driver on Qemu 1.0. Such
> a finding is quite a bit surprise to me.
Does Windows refuse to install a new driver or just stuck? 
> 
> 	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we found
> the Virio driver failed to work after disabling and enabling the driver a
> few times. However, the failure case largely depends on the type of
> machine. On my machine, I did not see such a problem.
Are you running SMP or UP guest? What about others?
> 
> 	Here are a few of questions that I want to clarify for us.
> 
> 	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the current
> head branch)? 
Yes, as far as I know.
> 2. Does your QA team verify the new VirtIo driver prior Qemu
> 1.0.50? Do you recommend us to do such a test or debugging?
Our QA test our drivers on top of RHEL only. I don't know exactly what
is the difference between our latest qemu-kvm and upstream
> 
> 	3. When we disable and enable the new VirtIO driver several times on
> either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after
> enabling the new VirtIO driver. What we found in this particular case is
> that the VirtIO driver was blocked inside the DPC routine where the driver
> tried to ACK the interrupt. Based on my colleague's 		   observation, 
the
> I/O read from DPC was not trapped by the front-end driver(a Linux driver
> implemented for VirtIO)? Do you have any idea why this could happen? Also,
> did you 	   	   find similar issues by you or your QA?
I know for sure that we have at least one race condition described here:
https://bugzilla.redhat.com/show_bug.cgi?id=750773
Hence, my question is whether your guest is SMP or UP? 
> 
> 	Please let us know these as soon as possible since we have a big trouble
> to make the Virio driver(new and old driver) work stably in any Qemu
> official release including Qemu 1.0.50.
I'm going to push some changes, mostly related to the above bug. 
The DPC problem is completely new for me. Please post your qemu 
configuration string and I'll try to reproduce it and investigate this problem.

Best regards,
Vadim.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Wednesday, February 08, 2012 3:47 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> I'm afraid to give you any recommendations regarding QEMU stability.
> I usually work with qemu-kvm repository. But we are always doing WHQL
> process on RHEL platform only.
> 
> Maybe someone from the SPICE team can comment on your question?
> 
> Best regards,
> Vadim.
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Wednesday, February 8, 2012
> 4:39:22 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on
> Qemu 0.15
> 
> Vadim,
> 
> Thanks. I tested Windows guest OS driver the over qemu-kvm-devel 1.0.50
> from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and it worked. The
> latest Windows guest driver from (https://github.com/YanVugenfirer/) seems
> to have to work with Qemu 1.0.50. My previous test ran over Qemu 1.0 and
> that was why it failed to work.
> 
> As you mentioned, the latest driver from
> (https://github.com/YanVugenfirer/) is much more stable than the old one.
> But those drivers must work with Qemu 1.0.50 which was not verified to be
> stable. Do you think Qemu 1.0.50 is stable to be used? Please give us a
> recommendation.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Wednesday, February 08, 2012 3:06 AM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> I have tried to reproduce the problem several times without success.
> 
> QEMU:
> QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel 1.0.50
> from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> 
> My guest info:
> OS Name:                   Microsoft Windows 7 Enterprise
> OS Version:                6.1.7600 N/A Build 7600
> 
> QEMU command line:
> sudo /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m
> 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid
> d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc base=localtime
> -device
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x5.0x
> 0 -drive
> file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,forma
> t=qcow2 -device
> ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
> -netdev tap,id=hostnet0 -device
> e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifunctio
> n=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device
> isa-serial,chardev=charserial0,id=serial0 -chardev
> spicevmc,id=charchannel0,name=vdagent -device
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,
> name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm
> 
> Drivers:
> Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by myself
> with the sources from our internal repository (which contains absolutely
> the same code as in Yan's repository).
> 
> 
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Monday, February 6, 2012
> 3:08:55 PM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on
> Qemu 0.15
> 
> Vadim,
> 
> I did the same test again today and no luck to made it work.
> Let us what you find since we might have missed some points when we did the
> test.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Sunday, February 05, 2012 2:14 AM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Thanks,
> I'll check this problem.
> Vadim.
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld"
> <vrozenfe@redhat.com> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>,
> "Stefan Hajnoczi" <stefanha@gmail.com>, spice-devel@lists.freedesktop.org,
> "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Saturday, February 4, 2012
> 5:39:26 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on
> Qemu 0.15
> 
> Vadim,
> 
> We tested the free build driver on 32-bit Windows 7 and the symptom was the
> same. In other words, the latest driver source from
> https://github.com/YanVugenfirer/ is buggy and it was not workable at all.
> 
> 
> 
> -----Original Message-----
> From: Charles.Tsai-蔡清海-研究發展部
> Sent: Friday, February 03, 2012 12:01 PM
> To: 'Vadim Rozenfeld'
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: RE:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> I downloaded the latest Windows guest driver code from
> (https://github.com/YanVugenfirer/) and built the test binary driver code.
> When I tested the release build Vioserial driver on 64-bit Windows 7, the
> driver seemed to wait for something to happen and the update driver
> Windows dialog simply just stayed in busy state. Finally, the Windows
> system entered a busy loop. However, if I tested the debugging build
> driver, the driver could be installed. But it took for a long time to
> complete.
> 
> Our installed Qemu is 1.0. Is there Qemu build requirement so that we can
> verify the vioserial driver? From my test, the latest code from
> (https://github.com/YanVugenfirer/) seemed to be worst than the one we
> tested before. Let me know if we did anything wrong.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Friday, January 20, 2012 8:48 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> This code is slightly buggy.
> Please try Yan's repository
> at github (https://github.com/YanVugenfirer/).
> I believe that the most critical changes have been merged already by Yan
> into this public repository. I will ask to update binaries and sources at
> fedoraproject site as well.
> 
> Best regards,
> Vadim.
> 
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent: Friday,
> January 20, 2012 3:25:51 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on
> Qemu 0.15
> 
> Vadim,
> 
> We downloaded the driver source from the following website.
> ===========================================================
> wget --no-check-certificate
> https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/virtio-
> win-prewhql-0.1-15-sources.zip
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 8:25 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Just to be sure that we are on the same page:
> could you tell me about the origin of the source?
> Is it the latest from the Yan's repository at github.com?
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent: Thursday,
> January 19, 2012 12:06:16 PM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on
> Qemu 0.15
> 
> Vadim,
> 
> We built it from the driver source. Up to this moment, we always use the
> same binary to test Qemu.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 5:39 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: RE: [Qemu-devel]
> [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > It is SMP system.
> 
> What about vioserial driver itself?
> did you build it from sources or is
> it one, available through RHEL channels?
> 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 3:58 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> > on Qemu 0.15
> > 
> > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > Vadim,
> > > 
> > > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to
> > > install on 64-bit Win7 guest. During the driver installation, the
> > > system hung after the driver being installed. After I rebooted the
> > > guest OS, the Vioserial driver work. The hang system seemed to be
> > > found only during the driver installation.
> > 
> > On UP or SMP system?
> > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > To: Michael Roth
> > > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy;
> > > qemu-devel
> > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > > Vadim,
> > > > > 
> > > > > Thank you for your prompt reply. Here are the information for our
> > > > > test case.
> > > > > 
> > > > > 
> > > > > 1) we use the following command line to launch the guest OS
> > > > > 
> > > > > 
> > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults
> > > > > -chardev
> > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monitor,
> > > > > se rv er,nowait -mon
> > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > -rtc base=localtime
> > > > > -device
> > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,a
> > > > > dd
> > > > > r=
> > > > > 0x5.0x0 -drive
> > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,form
> > > > > at
> > > > > =r
> > > > > aw -device
> > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,boot
> > > > > in
> > > > > de
> > > > > x=1
> > > > > -netdev tap,fd=17,id=hostnet0
> > > > > -device
> > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.0,
> > > > > mu
> > > > > lt
> > > > > ifunction=on,addr=0x3.0x0
> > > > > -chardev pty,id=charserial0
> > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > -device
> > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id
> > > > > =c
> > > > > ha
> > > > > nnel0,name=com.redhat.spice.0
> > > > > -usb -device usb-tablet,id=input0 -spice
> > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0
> > > > > x4
> > > > > .0
> > > > > x0
> > > > > 
> > > > > 
> > > > > 
> > > > > 2). In Guest Windows XP OS
> > > > > 
> > > > > 
> > > > > When the following callback function of the vioserial device  is
> > > > > called in guest OS. The allocated resources is empty.
> > > > > 
> > > > > 
> > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get the
> > > > > I/O address of the vioserial device and map the physical address
> > > > > to the logical address space.
> > > > > 
> > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > > 
> > > > > 
> > > > > So far, we have tested Qemu 0.14 without any problem but Qemu 0.15
> > > > > seemed to be broken in vioserial device. Let me know if you need
> > > > > further information. Thanks.
> > > > 
> > > > Hi Charles,
> > > > 
> > > > What versions of the virtio-win drivers are you using?
> > > > 
> > > > I've been testing virtio-serial on windows using the latest
> > > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP SP3
> > > 
> > > > works intermittently for me using RHEL6.0 virtio-win, as well as the 
drivers at:
> > > I have seen some virtio serial port initialization problems on 1.0.50.
> > > Will try to look into this problem in the following week(s).
> > > 
> > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/
> > > > 
> > > > But I've been getting a mix of issues such as guest hangs,
> > > > vioser-test failing to enumerate any virtio-serial devices, or
> > > > various non-critical error messages from qemu that seem to
> > > > coincide with the channel being open/closed (occasionally resulting
> > > > in the channel becoming unresponsive).
> > > > 
> > > > Do any of these seem similar to the behaviour you're seeing? If so
> > > > I'll see if the issues go away on 0.14.0 and follow-up with a git
> > > > bisect.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19  6:29                                                       ` Charles.Tsai-蔡清海-研究發展部
  2012-03-19  9:16                                                         ` Vadim Rozenfeld
@ 2012-03-19 10:12                                                         ` Christophe Fergeau
  2012-03-19 10:28                                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-03-19 11:42                                                           ` Vadim Rozenfeld
  1 sibling, 2 replies; 50+ messages in thread
From: Christophe Fergeau @ 2012-03-19 10:12 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Paul
	Lu-盧偉智-研究發展部,
	Michael Roth, qemu-devel, Vadim Rozenfeld, spice-devel,
	Alex
	Huang-黃必賢-研究發展部

[-- Attachment #1: Type: text/plain, Size: 492 bytes --]

Hey,

On Mon, Mar 19, 2012 at 02:29:41PM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> 	3. When we disable and enable the new VirtIO driver several times
> 	on either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work
> 	after enabling the new VirtIO driver.

For what it's worth, Alon Levy also hit this particular bug a few months
ago, and I successfully reproduced at that time. I think I reported it to
Vadim back in the days, but I'm not 100% sure :)

Christophe

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 10:12                                                         ` Christophe Fergeau
@ 2012-03-19 10:28                                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-03-19 11:42                                                           ` Vadim Rozenfeld
  1 sibling, 0 replies; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-03-19 10:28 UTC (permalink / raw)
  To: Christophe Fergeau
  Cc: Paul
	Lu-盧偉智-研究發展部,
	Michael Roth, qemu-devel, Vadim Rozenfeld, spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Christophe,

Great!, we finally are at the same page.


-----Original Message-----
From: Christophe Fergeau [mailto:cfergeau@redhat.com] 
Sent: Monday, March 19, 2012 6:13 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Vadim Rozenfeld; qemu-devel; Michael Roth; Paul Lu-盧偉智-研究發展部; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部
Subject: Re: [Spice-devel] [Qemu-devel] Vioserial of Windows guest OS on Qemu 0.15

Hey,

On Mon, Mar 19, 2012 at 02:29:41PM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> 	3. When we disable and enable the new VirtIO driver several times
> 	on either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work
> 	after enabling the new VirtIO driver.

For what it's worth, Alon Levy also hit this particular bug a few months ago, and I successfully reproduced at that time. I think I reported it to Vadim back in the days, but I'm not 100% sure :)

Christophe

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19  9:16                                                         ` Vadim Rozenfeld
@ 2012-03-19 11:16                                                           ` Charles.Tsai-蔡清海-研究發展部
  2012-03-19 12:02                                                             ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-03-19 11:16 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

What do you mean "qemu configuration string"? Is it the build configuration or command line option?
Please let me know it. Thanks.




-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Monday, March 19, 2012 5:17 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Monday, March 19, 2012 08:29:41 AM Charles.Tsai-蔡清海-研究發展部 wrote:
> Hi Vadim,
> 
> 	We recently encountered with many issues with new Windows Virio 
> driver running on Qemu 1.0 and Qemu 1.0.50. My initial investigation 
> was found that the new Viro driver could not be installed  before Qemu 
> 1.0.50. But my colleague right now can install the new Virio driver on 
> Qemu 1.0. Such a finding is quite a bit surprise to me.
Does Windows refuse to install a new driver or just stuck? 
> 
> 	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we 
> found the Virio driver failed to work after disabling and enabling the 
> driver a few times. However, the failure case largely depends on the 
> type of machine. On my machine, I did not see such a problem.
Are you running SMP or UP guest? What about others?
> 
> 	Here are a few of questions that I want to clarify for us.
> 
> 	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the 
> current head branch)?
Yes, as far as I know.
> 2. Does your QA team verify the new VirtIo driver prior Qemu 1.0.50? 
> Do you recommend us to do such a test or debugging?
Our QA test our drivers on top of RHEL only. I don't know exactly what is the difference between our latest qemu-kvm and upstream
> 
> 	3. When we disable and enable the new VirtIO driver several times on 
> either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after 
> enabling the new VirtIO driver. What we found in this particular case 
> is that the VirtIO driver was blocked inside the DPC routine where the driver
> tried to ACK the interrupt. Based on my colleague's 		   observation, 
the
> I/O read from DPC was not trapped by the front-end driver(a Linux 
> driver implemented for VirtIO)? Do you have any idea why this could happen? Also,
> did you 	   	   find similar issues by you or your QA?
I know for sure that we have at least one race condition described here:
https://bugzilla.redhat.com/show_bug.cgi?id=750773
Hence, my question is whether your guest is SMP or UP? 
> 
> 	Please let us know these as soon as possible since we have a big 
> trouble to make the Virio driver(new and old driver) work stably in 
> any Qemu official release including Qemu 1.0.50.
I'm going to push some changes, mostly related to the above bug. 
The DPC problem is completely new for me. Please post your qemu configuration string and I'll try to reproduce it and investigate this problem.

Best regards,
Vadim.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Wednesday, February 08, 2012 3:47 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> I'm afraid to give you any recommendations regarding QEMU stability.
> I usually work with qemu-kvm repository. But we are always doing WHQL 
> process on RHEL platform only.
> 
> Maybe someone from the SPICE team can comment on your question?
> 
> Best regards,
> Vadim.
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Wednesday, February 8, 2012
> 4:39:22 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> Vadim,
> 
> Thanks. I tested Windows guest OS driver the over qemu-kvm-devel 
> 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and it 
> worked. The latest Windows guest driver from 
> (https://github.com/YanVugenfirer/) seems to have to work with Qemu 
> 1.0.50. My previous test ran over Qemu 1.0 and that was why it failed to work.
> 
> As you mentioned, the latest driver from
> (https://github.com/YanVugenfirer/) is much more stable than the old one.
> But those drivers must work with Qemu 1.0.50 which was not verified to 
> be stable. Do you think Qemu 1.0.50 is stable to be used? Please give 
> us a recommendation.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Wednesday, February 08, 2012 3:06 AM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> I have tried to reproduce the problem several times without success.
> 
> QEMU:
> QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel 
> 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> 
> My guest info:
> OS Name:                   Microsoft Windows 7 Enterprise
> OS Version:                6.1.7600 N/A Build 7600
> 
> QEMU command line:
> sudo 
> /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m
> 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid
> d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc 
> base=localtime -device 
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x
> 5.0x
> 0 -drive
> file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,f
> orma
> t=qcow2 -device
> ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=
> 1
> -netdev tap,id=hostnet0 -device
> e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifun
> ctio
> n=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device
> isa-serial,chardev=charserial0,id=serial0 -chardev 
> spicevmc,id=charchannel0,name=vdagent -device 
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=chann
> el0,
> name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm
> 
> Drivers:
> Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by 
> myself with the sources from our internal repository (which contains 
> absolutely the same code as in Yan's repository).
> 
> 
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Monday, February 6, 2012
> 3:08:55 PM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> Vadim,
> 
> I did the same test again today and no luck to made it work.
> Let us what you find since we might have missed some points when we 
> did the test.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Sunday, February 05, 2012 2:14 AM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Thanks,
> I'll check this problem.
> Vadim.
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim Rozenfeld"
> <vrozenfe@redhat.com> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, 
> "Stefan Hajnoczi" <stefanha@gmail.com>, 
> spice-devel@lists.freedesktop.org,
> "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Saturday, February 4, 2012
> 5:39:26 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> Vadim,
> 
> We tested the free build driver on 32-bit Windows 7 and the symptom 
> was the same. In other words, the latest driver source from 
> https://github.com/YanVugenfirer/ is buggy and it was not workable at all.
> 
> 
> 
> -----Original Message-----
> From: Charles.Tsai-蔡清海-研究發展部
> Sent: Friday, February 03, 2012 12:01 PM
> To: 'Vadim Rozenfeld'
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: RE:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> I downloaded the latest Windows guest driver code from
> (https://github.com/YanVugenfirer/) and built the test binary driver code.
> When I tested the release build Vioserial driver on 64-bit Windows 7, 
> the driver seemed to wait for something to happen and the update 
> driver Windows dialog simply just stayed in busy state. Finally, the 
> Windows system entered a busy loop. However, if I tested the debugging 
> build driver, the driver could be installed. But it took for a long 
> time to complete.
> 
> Our installed Qemu is 1.0. Is there Qemu build requirement so that we 
> can verify the vioserial driver? From my test, the latest code from
> (https://github.com/YanVugenfirer/) seemed to be worst than the one we 
> tested before. Let me know if we did anything wrong.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Friday, January 20, 2012 8:48 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel] 
> [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> This code is slightly buggy.
> Please try Yan's repository
> at github (https://github.com/YanVugenfirer/).
> I believe that the most critical changes have been merged already by 
> Yan into this public repository. I will ask to update binaries and 
> sources at fedoraproject site as well.
> 
> Best regards,
> Vadim.
> 
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent: Friday, 
> January 20, 2012 3:25:51 AM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> Vadim,
> 
> We downloaded the driver source from the following website.
> ===========================================================
> wget --no-check-certificate
> https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/vir
> tio-
> win-prewhql-0.1-15-sources.zip
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 8:25 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel] 
> [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Just to be sure that we are on the same page:
> could you tell me about the origin of the source?
> Is it the latest from the Yan's repository at github.com?
> 
> ----- Original Message -----
> From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent: 
> Thursday, January 19, 2012 12:06:16 PM
> Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS 
> on Qemu 0.15
> 
> Vadim,
> 
> We built it from the driver source. Up to this moment, we always use 
> the same binary to test Qemu.
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Thursday, January 19, 2012 5:39 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: RE: [Qemu-devel] 
> [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > Vadim,
> > 
> > It is SMP system.
> 
> What about vioserial driver itself?
> did you build it from sources or is
> it one, available through RHEL channels?
> 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 3:58 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > Vadim,
> > > 
> > > I tested on Qemu 1.0.50. and found the VioSerial driver had 
> > > problem to install on 64-bit Win7 guest. During the driver 
> > > installation, the system hung after the driver being installed. 
> > > After I rebooted the guest OS, the Vioserial driver work. The hang 
> > > system seemed to be found only during the driver installation.
> > 
> > On UP or SMP system?
> > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > To: Michael Roth
> > > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon 
> > > Levy; qemu-devel
> > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > > OS on Qemu 0.15
> > > 
> > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > > Vadim,
> > > > > 
> > > > > Thank you for your prompt reply. Here are the information for 
> > > > > our test case.
> > > > > 
> > > > > 
> > > > > 1) we use the following command line to launch the guest OS
> > > > > 
> > > > > 
> > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults 
> > > > > -chardev 
> > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monito
> > > > > r,
> > > > > se rv er,nowait -mon
> > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > -rtc base=localtime
> > > > > -device
> > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on
> > > > > ,a
> > > > > dd
> > > > > r=
> > > > > 0x5.0x0 -drive
> > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,fo
> > > > > rm
> > > > > at
> > > > > =r
> > > > > aw -device
> > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bo
> > > > > ot
> > > > > in
> > > > > de
> > > > > x=1
> > > > > -netdev tap,fd=17,id=hostnet0
> > > > > -device
> > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.
> > > > > 0,
> > > > > mu
> > > > > lt
> > > > > ifunction=on,addr=0x3.0x0
> > > > > -chardev pty,id=charserial0
> > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > -device
> > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,
> > > > > id
> > > > > =c
> > > > > ha
> > > > > nnel0,name=com.redhat.spice.0
> > > > > -usb -device usb-tablet,id=input0 -spice 
> > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr
> > > > > =0
> > > > > x4
> > > > > .0
> > > > > x0
> > > > > 
> > > > > 
> > > > > 
> > > > > 2). In Guest Windows XP OS
> > > > > 
> > > > > 
> > > > > When the following callback function of the vioserial device  
> > > > > is called in guest OS. The allocated resources is empty.
> > > > > 
> > > > > 
> > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get 
> > > > > the I/O address of the vioserial device and map the physical 
> > > > > address to the logical address space.
> > > > > 
> > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > > 
> > > > > 
> > > > > So far, we have tested Qemu 0.14 without any problem but Qemu 
> > > > > 0.15 seemed to be broken in vioserial device. Let me know if 
> > > > > you need further information. Thanks.
> > > > 
> > > > Hi Charles,
> > > > 
> > > > What versions of the virtio-win drivers are you using?
> > > > 
> > > > I've been testing virtio-serial on windows using the latest 
> > > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP 
> > > > SP3
> > > 
> > > > works intermittently for me using RHEL6.0 virtio-win, as well as 
> > > > the
drivers at:
> > > I have seen some virtio serial port initialization problems on 1.0.50.
> > > Will try to look into this problem in the following week(s).
> > > 
> > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bi
> > > > n/
> > > > 
> > > > But I've been getting a mix of issues such as guest hangs, 
> > > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > > various non-critical error messages from qemu that seem to 
> > > > coincide with the channel being open/closed (occasionally 
> > > > resulting in the channel becoming unresponsive).
> > > > 
> > > > Do any of these seem similar to the behaviour you're seeing? If 
> > > > so I'll see if the issues go away on 0.14.0 and follow-up with a 
> > > > git bisect.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 10:12                                                         ` Christophe Fergeau
  2012-03-19 10:28                                                           ` Charles.Tsai-蔡清海-研究發展部
@ 2012-03-19 11:42                                                           ` Vadim Rozenfeld
  2012-03-19 11:56                                                             ` Christophe Fergeau
  1 sibling, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-03-19 11:42 UTC (permalink / raw)
  To: Christophe Fergeau
  Cc: Paul
	Lu-盧偉智-研究發展部,
	qemu-devel, Michael Roth,
	Charles.Tsai-蔡清海-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Monday, March 19, 2012 12:12:59 PM Christophe Fergeau wrote:
> Hey,
> 
> On Mon, Mar 19, 2012 at 02:29:41PM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > 	3. When we disable and enable the new VirtIO driver several times
> > 	on either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work
> > 	after enabling the new VirtIO driver.
> 
> For what it's worth, Alon Levy also hit this particular bug a few months
> ago, and I successfully reproduced at that time. I think I reported it to
> Vadim back in the days, but I'm not 100% sure :)
> 
> Christophe
Thanks Christophe.
In your case (https://bugzilla.redhat.com/show_bug.cgi?id=750773)
an UP system hangs on shutdown. 
I'm not sure whether Charles is hitting the same problem.

Best,
Vadim.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 11:42                                                           ` Vadim Rozenfeld
@ 2012-03-19 11:56                                                             ` Christophe Fergeau
  2012-03-19 12:07                                                               ` Vadim Rozenfeld
  0 siblings, 1 reply; 50+ messages in thread
From: Christophe Fergeau @ 2012-03-19 11:56 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Paul
	Lu-盧偉智-研究發展部,
	qemu-devel, Michael Roth,
	Charles.Tsai-蔡清海-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

On Mon, Mar 19, 2012 at 01:42:21PM +0200, Vadim Rozenfeld wrote:
> On Monday, March 19, 2012 12:12:59 PM Christophe Fergeau wrote:
> > Hey,
> > 
> > On Mon, Mar 19, 2012 at 02:29:41PM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > 	3. When we disable and enable the new VirtIO driver several times
> > > 	on either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work
> > > 	after enabling the new VirtIO driver.
> > 
> > For what it's worth, Alon Levy also hit this particular bug a few months
> > ago, and I successfully reproduced at that time. I think I reported it to
> > Vadim back in the days, but I'm not 100% sure :)
> > 
> > Christophe
> Thanks Christophe.
> In your case (https://bugzilla.redhat.com/show_bug.cgi?id=750773)
> an UP system hangs on shutdown. 

In my case, the hang was during boot even though it magically went away
sometimes in the last month

> I'm not sure whether Charles is hitting the same problem.

While trying to figure out what was going on with the bug above, I've
definitely hit a "enabling/disabling vioserial in the device manager 3
times causes the VM to freeze" bug.
For what it's worth, lately I've also been experiencing VM freezes when
installing vioserial in winxp or win7 UP VMs

Christophe

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 11:16                                                           ` Charles.Tsai-蔡清海-研究發展部
@ 2012-03-19 12:02                                                             ` Vadim Rozenfeld
  2012-03-19 12:32                                                               ` Charles.Tsai-蔡清海-研究發展部
  0 siblings, 1 reply; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-03-19 12:02 UTC (permalink / raw)
  To: Charles.Tsai-蔡清海-研究發展部
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Monday, March 19, 2012 01:16:56 PM Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> What do you mean "qemu configuration string"? Is it the build configuration
> or command line option? Please let me know it. Thanks.
> 
> 
Sorry, that was ambiguous.
I need the command line in order to reproduce the problem.

Cheers,
Vadim.

> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Monday, March 19, 2012 5:17 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Monday, March 19, 2012 08:29:41 AM Charles.Tsai-蔡清海-研究發展部 wrote:
> > Hi Vadim,
> > 
> > 	We recently encountered with many issues with new Windows Virio
> > 
> > driver running on Qemu 1.0 and Qemu 1.0.50. My initial investigation
> > was found that the new Viro driver could not be installed  before Qemu
> > 1.0.50. But my colleague right now can install the new Virio driver on
> > Qemu 1.0. Such a finding is quite a bit surprise to me.
> 
> Does Windows refuse to install a new driver or just stuck?
> 
> > 	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we
> > 
> > found the Virio driver failed to work after disabling and enabling the
> > driver a few times. However, the failure case largely depends on the
> > type of machine. On my machine, I did not see such a problem.
> 
> Are you running SMP or UP guest? What about others?
> 
> > 	Here are a few of questions that I want to clarify for us.
> > 	
> > 	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the
> > 
> > current head branch)?
> 
> Yes, as far as I know.
> 
> > 2. Does your QA team verify the new VirtIo driver prior Qemu 1.0.50?
> > Do you recommend us to do such a test or debugging?
> 
> Our QA test our drivers on top of RHEL only. I don't know exactly what is
> the difference between our latest qemu-kvm and upstream
> 
> > 	3. When we disable and enable the new VirtIO driver several times on
> > 
> > either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after
> > enabling the new VirtIO driver. What we found in this particular case
> > is that the VirtIO driver was blocked inside the DPC routine where the
> > driver tried to ACK the interrupt. Based on my colleague's 		  
> > observation,
> 
> the
> 
> > I/O read from DPC was not trapped by the front-end driver(a Linux
> > driver implemented for VirtIO)? Do you have any idea why this could
> > happen? Also, did you 	   	   find similar issues by you or your QA?
> 
> I know for sure that we have at least one race condition described here:
> https://bugzilla.redhat.com/show_bug.cgi?id=750773
> Hence, my question is whether your guest is SMP or UP?
> 
> > 	Please let us know these as soon as possible since we have a big
> > 
> > trouble to make the Virio driver(new and old driver) work stably in
> > any Qemu official release including Qemu 1.0.50.
> 
> I'm going to push some changes, mostly related to the above bug.
> The DPC problem is completely new for me. Please post your qemu
> configuration string and I'll try to reproduce it and investigate this
> problem.
> 
> Best regards,
> Vadim.
> 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, February 08, 2012 3:47 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > I'm afraid to give you any recommendations regarding QEMU stability.
> > I usually work with qemu-kvm repository. But we are always doing WHQL
> > process on RHEL platform only.
> > 
> > Maybe someone from the SPICE team can comment on your question?
> > 
> > Best regards,
> > Vadim.
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Wednesday, February 8, 2012
> > 4:39:22 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> > on Qemu 0.15
> > 
> > Vadim,
> > 
> > Thanks. I tested Windows guest OS driver the over qemu-kvm-devel
> > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and it
> > worked. The latest Windows guest driver from
> > (https://github.com/YanVugenfirer/) seems to have to work with Qemu
> > 1.0.50. My previous test ran over Qemu 1.0 and that was why it failed to
> > work.
> > 
> > As you mentioned, the latest driver from
> > (https://github.com/YanVugenfirer/) is much more stable than the old one.
> > But those drivers must work with Qemu 1.0.50 which was not verified to
> > be stable. Do you think Qemu 1.0.50 is stable to be used? Please give
> > us a recommendation.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, February 08, 2012 3:06 AM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > I have tried to reproduce the problem several times without success.
> > 
> > QEMU:
> > QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel
> > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> > 
> > My guest info:
> > OS Name:                   Microsoft Windows 7 Enterprise
> > OS Version:                6.1.7600 N/A Build 7600
> > 
> > QEMU command line:
> > sudo
> > /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 -m
> > 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid
> > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc
> > base=localtime -device
> > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=0x
> > 5.0x
> > 0 -drive
> > file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0,f
> > orma
> > t=qcow2 -device
> > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=
> > 1
> > -netdev tap,id=hostnet0 -device
> > e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multifun
> > ctio
> > n=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device
> > isa-serial,chardev=charserial0,id=serial0 -chardev
> > spicevmc,id=charchannel0,name=vdagent -device
> > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=chann
> > el0,
> > name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device
> > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0
> > -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot -enable-kvm
> > 
> > Drivers:
> > Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by
> > myself with the sources from our internal repository (which contains
> > absolutely the same code as in Yan's repository).
> > 
> > 
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Monday, February 6, 2012
> > 3:08:55 PM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> > on Qemu 0.15
> > 
> > Vadim,
> > 
> > I did the same test again today and no luck to made it work.
> > Let us what you find since we might have missed some points when we
> > did the test.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Sunday, February 05, 2012 2:14 AM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > Thanks,
> > I'll check this problem.
> > Vadim.
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim
> > Rozenfeld" <vrozenfe@redhat.com> Cc: "Michael Roth"
> > <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>,
> > spice-devel@lists.freedesktop.org,
> > "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Saturday, February 4, 2012
> > 5:39:26 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> > on Qemu 0.15
> > 
> > Vadim,
> > 
> > We tested the free build driver on 32-bit Windows 7 and the symptom
> > was the same. In other words, the latest driver source from
> > https://github.com/YanVugenfirer/ is buggy and it was not workable at
> > all.
> > 
> > 
> > 
> > -----Original Message-----
> > From: Charles.Tsai-蔡清海-研究發展部
> > Sent: Friday, February 03, 2012 12:01 PM
> > To: 'Vadim Rozenfeld'
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: RE:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > I downloaded the latest Windows guest driver code from
> > (https://github.com/YanVugenfirer/) and built the test binary driver
> > code. When I tested the release build Vioserial driver on 64-bit Windows
> > 7, the driver seemed to wait for something to happen and the update
> > driver Windows dialog simply just stayed in busy state. Finally, the
> > Windows system entered a busy loop. However, if I tested the debugging
> > build driver, the driver could be installed. But it took for a long time
> > to complete.
> > 
> > Our installed Qemu is 1.0. Is there Qemu build requirement so that we
> > can verify the vioserial driver? From my test, the latest code from
> > (https://github.com/YanVugenfirer/) seemed to be worst than the one we
> > tested before. Let me know if we did anything wrong.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Friday, January 20, 2012 8:48 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > This code is slightly buggy.
> > Please try Yan's repository
> > at github (https://github.com/YanVugenfirer/).
> > I believe that the most critical changes have been merged already by
> > Yan into this public repository. I will ask to update binaries and
> > sources at fedoraproject site as well.
> > 
> > Best regards,
> > Vadim.
> > 
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent: Friday,
> > January 20, 2012 3:25:51 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> > on Qemu 0.15
> > 
> > Vadim,
> > 
> > We downloaded the driver source from the following website.
> > ===========================================================
> > wget --no-check-certificate
> > https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/vir
> > tio-
> > win-prewhql-0.1-15-sources.zip
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 8:25 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > Just to be sure that we are on the same page:
> > could you tell me about the origin of the source?
> > Is it the latest from the Yan's repository at github.com?
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent:
> > Thursday, January 19, 2012 12:06:16 PM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS
> > on Qemu 0.15
> > 
> > Vadim,
> > 
> > We built it from the driver source. Up to this moment, we always use
> > the same binary to test Qemu.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 5:39 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: RE: [Qemu-devel]
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > Vadim,
> > > 
> > > It is SMP system.
> > 
> > What about vioserial driver itself?
> > did you build it from sources or is
> > it one, available through RHEL channels?
> > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Thursday, January 19, 2012 3:58 PM
> > > To: Charles.Tsai-蔡清海-研究發展部
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > > 
> > > > I tested on Qemu 1.0.50. and found the VioSerial driver had
> > > > problem to install on 64-bit Win7 guest. During the driver
> > > > installation, the system hung after the driver being installed.
> > > > After I rebooted the guest OS, the Vioserial driver work. The hang
> > > > system seemed to be found only during the driver installation.
> > > 
> > > On UP or SMP system?
> > > 
> > > > -----Original Message-----
> > > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > > To: Michael Roth
> > > > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi;
> > > > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon
> > > > Levy; qemu-devel
> > > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > > OS on Qemu 0.15
> > > > 
> > > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > > > Vadim,
> > > > > > 
> > > > > > Thank you for your prompt reply. Here are the information for
> > > > > > our test case.
> > > > > > 
> > > > > > 
> > > > > > 1) we use the following command line to launch the guest OS
> > > > > > 
> > > > > > 
> > > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig -nodefaults
> > > > > > -chardev
> > > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.monito
> > > > > > r,
> > > > > > se rv er,nowait -mon
> > > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > > -rtc base=localtime
> > > > > > -device
> > > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on
> > > > > > ,a
> > > > > > dd
> > > > > > r=
> > > > > > 0x5.0x0 -drive
> > > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,fo
> > > > > > rm
> > > > > > at
> > > > > > =r
> > > > > > aw -device
> > > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bo
> > > > > > ot
> > > > > > in
> > > > > > de
> > > > > > x=1
> > > > > > -netdev tap,fd=17,id=hostnet0
> > > > > > -device
> > > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.
> > > > > > 0,
> > > > > > mu
> > > > > > lt
> > > > > > ifunction=on,addr=0x3.0x0
> > > > > > -chardev pty,id=charserial0
> > > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > > -device
> > > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,
> > > > > > id
> > > > > > =c
> > > > > > ha
> > > > > > nnel0,name=com.redhat.spice.0
> > > > > > -usb -device usb-tablet,id=input0 -spice
> > > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr
> > > > > > =0
> > > > > > x4
> > > > > > .0
> > > > > > x0
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 2). In Guest Windows XP OS
> > > > > > 
> > > > > > 
> > > > > > When the following callback function of the vioserial device
> > > > > > is called in guest OS. The allocated resources is empty.
> > > > > > 
> > > > > > 
> > > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to get
> > > > > > the I/O address of the vioserial device and map the physical
> > > > > > address to the logical address space.
> > > > > > 
> > > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > > > 
> > > > > > 
> > > > > > So far, we have tested Qemu 0.14 without any problem but Qemu
> > > > > > 0.15 seemed to be broken in vioserial device. Let me know if
> > > > > > you need further information. Thanks.
> > > > > 
> > > > > Hi Charles,
> > > > > 
> > > > > What versions of the virtio-win drivers are you using?
> > > > > 
> > > > > I've been testing virtio-serial on windows using the latest
> > > > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP
> > > > > SP3
> > > > > 
> > > > > works intermittently for me using RHEL6.0 virtio-win, as well as
> > > > > the
> 
> drivers at:
> > > > I have seen some virtio serial port initialization problems on
> > > > 1.0.50. Will try to look into this problem in the following week(s).
> > > > 
> > > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bi
> > > > > n/
> > > > > 
> > > > > But I've been getting a mix of issues such as guest hangs,
> > > > > vioser-test failing to enumerate any virtio-serial devices, or
> > > > > various non-critical error messages from qemu that seem to
> > > > > coincide with the channel being open/closed (occasionally
> > > > > resulting in the channel becoming unresponsive).
> > > > > 
> > > > > Do any of these seem similar to the behaviour you're seeing? If
> > > > > so I'll see if the issues go away on 0.14.0 and follow-up with a
> > > > > git bisect.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 11:56                                                             ` Christophe Fergeau
@ 2012-03-19 12:07                                                               ` Vadim Rozenfeld
  0 siblings, 0 replies; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-03-19 12:07 UTC (permalink / raw)
  To: Christophe Fergeau
  Cc: Paul
	Lu-盧偉智-研究發展部,
	qemu-devel, Michael Roth,
	Charles.Tsai-蔡清海-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

On Monday, March 19, 2012 01:56:03 PM Christophe Fergeau wrote:
> On Mon, Mar 19, 2012 at 01:42:21PM +0200, Vadim Rozenfeld wrote:
> > On Monday, March 19, 2012 12:12:59 PM Christophe Fergeau wrote:
> > > Hey,
> > > 
> > > On Mon, Mar 19, 2012 at 02:29:41PM +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > 	3. When we disable and enable the new VirtIO driver several times
> > > > 	on either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work
> > > > 	after enabling the new VirtIO driver.
> > > 
> > > For what it's worth, Alon Levy also hit this particular bug a few
> > > months ago, and I successfully reproduced at that time. I think I
> > > reported it to Vadim back in the days, but I'm not 100% sure :)
> > > 
> > > Christophe
> > 
> > Thanks Christophe.
> > In your case (https://bugzilla.redhat.com/show_bug.cgi?id=750773)
> > an UP system hangs on shutdown.
> 
> In my case, the hang was during boot even though it magically went away
> sometimes in the last month
> 
> > I'm not sure whether Charles is hitting the same problem.
> 
> While trying to figure out what was going on with the bug above, I've
> definitely hit a "enabling/disabling vioserial in the device manager 3
> times causes the VM to freeze" bug.
> For what it's worth, lately I've also been experiencing VM freezes when
> installing vioserial in winxp or win7 UP VMs
OK. It looks like the same race condition, which I'm going to fix. 
> 
> Christophe

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 12:02                                                             ` Vadim Rozenfeld
@ 2012-03-19 12:32                                                               ` Charles.Tsai-蔡清海-研究發展部
  2012-03-19 12:48                                                                 ` Paul Lu-???-?????
  0 siblings, 1 reply; 50+ messages in thread
From: Charles.Tsai-蔡清海-研究發展部 @ 2012-03-19 12:32 UTC (permalink / raw)
  To: Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	Paul
	Lu-盧偉智-研究發展部,
	spice-devel,
	Alex
	Huang-黃必賢-研究發展部

Vadim,

My colleague will give you more  information we found here.
Qemu somehow in this particular case returns a wrong bar0 value.
In working case, the bar0 is 0xc140. But in failure case, the bar0 is changed to 0xC141.



-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Monday, March 19, 2012 8:03 PM
To: Charles.Tsai-蔡清海-研究發展部
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Monday, March 19, 2012 01:16:56 PM Charles.Tsai-蔡清海-研究發展部 wrote:
> Vadim,
> 
> What do you mean "qemu configuration string"? Is it the build 
> configuration or command line option? Please let me know it. Thanks.
> 
> 
Sorry, that was ambiguous.
I need the command line in order to reproduce the problem.

Cheers,
Vadim.

> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Monday, March 19, 2012 5:17 PM
> To: Charles.Tsai-蔡清海-研究發展部
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Monday, March 19, 2012 08:29:41 AM Charles.Tsai-蔡清海-研究發展部 wrote:
> > Hi Vadim,
> > 
> > 	We recently encountered with many issues with new Windows Virio
> > 
> > driver running on Qemu 1.0 and Qemu 1.0.50. My initial investigation 
> > was found that the new Viro driver could not be installed  before 
> > Qemu 1.0.50. But my colleague right now can install the new Virio 
> > driver on Qemu 1.0. Such a finding is quite a bit surprise to me.
> 
> Does Windows refuse to install a new driver or just stuck?
> 
> > 	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we
> > 
> > found the Virio driver failed to work after disabling and enabling 
> > the driver a few times. However, the failure case largely depends on 
> > the type of machine. On my machine, I did not see such a problem.
> 
> Are you running SMP or UP guest? What about others?
> 
> > 	Here are a few of questions that I want to clarify for us.
> > 	
> > 	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the
> > 
> > current head branch)?
> 
> Yes, as far as I know.
> 
> > 2. Does your QA team verify the new VirtIo driver prior Qemu 1.0.50?
> > Do you recommend us to do such a test or debugging?
> 
> Our QA test our drivers on top of RHEL only. I don't know exactly what 
> is the difference between our latest qemu-kvm and upstream
> 
> > 	3. When we disable and enable the new VirtIO driver several times 
> > on
> > 
> > either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after 
> > enabling the new VirtIO driver. What we found in this particular 
> > case is that the VirtIO driver was blocked inside the DPC routine where the
> > driver tried to ACK the interrupt. Based on my colleague's 		  
> > observation,
> 
> the
> 
> > I/O read from DPC was not trapped by the front-end driver(a Linux 
> > driver implemented for VirtIO)? Do you have any idea why this could
> > happen? Also, did you 	   	   find similar issues by you or your QA?
> 
> I know for sure that we have at least one race condition described here:
> https://bugzilla.redhat.com/show_bug.cgi?id=750773
> Hence, my question is whether your guest is SMP or UP?
> 
> > 	Please let us know these as soon as possible since we have a big
> > 
> > trouble to make the Virio driver(new and old driver) work stably in 
> > any Qemu official release including Qemu 1.0.50.
> 
> I'm going to push some changes, mostly related to the above bug.
> The DPC problem is completely new for me. Please post your qemu 
> configuration string and I'll try to reproduce it and investigate this 
> problem.
> 
> Best regards,
> Vadim.
> 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, February 08, 2012 3:47 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > I'm afraid to give you any recommendations regarding QEMU stability.
> > I usually work with qemu-kvm repository. But we are always doing 
> > WHQL process on RHEL platform only.
> > 
> > Maybe someone from the SPICE team can comment on your question?
> > 
> > Best regards,
> > Vadim.
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Wednesday, February 8, 
> > 2012
> > 4:39:22 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > Thanks. I tested Windows guest OS driver the over qemu-kvm-devel
> > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and 
> > it worked. The latest Windows guest driver from
> > (https://github.com/YanVugenfirer/) seems to have to work with Qemu 
> > 1.0.50. My previous test ran over Qemu 1.0 and that was why it 
> > failed to work.
> > 
> > As you mentioned, the latest driver from
> > (https://github.com/YanVugenfirer/) is much more stable than the old one.
> > But those drivers must work with Qemu 1.0.50 which was not verified 
> > to be stable. Do you think Qemu 1.0.50 is stable to be used? Please 
> > give us a recommendation.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, February 08, 2012 3:06 AM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > I have tried to reproduce the problem several times without success.
> > 
> > QEMU:
> > QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel
> > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> > 
> > My guest info:
> > OS Name:                   Microsoft Windows 7 Enterprise
> > OS Version:                6.1.7600 N/A Build 7600
> > 
> > QEMU command line:
> > sudo
> > /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 
> > -m
> > 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid
> > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc 
> > base=localtime -device 
> > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=
> > 0x
> > 5.0x
> > 0 -drive
> > file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0
> > ,f
> > orma
> > t=qcow2 -device
> > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootinde
> > x=
> > 1
> > -netdev tap,id=hostnet0 -device
> > e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multif
> > un
> > ctio
> > n=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device
> > isa-serial,chardev=charserial0,id=serial0 -chardev 
> > spicevmc,id=charchannel0,name=vdagent -device 
> > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=cha
> > nn
> > el0,
> > name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device
> > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0
> > x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot 
> > -enable-kvm
> > 
> > Drivers:
> > Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by 
> > myself with the sources from our internal repository (which contains 
> > absolutely the same code as in Yan's repository).
> > 
> > 
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Monday, February 6, 2012
> > 3:08:55 PM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > I did the same test again today and no luck to made it work.
> > Let us what you find since we might have missed some points when we 
> > did the test.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Sunday, February 05, 2012 2:14 AM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > Thanks,
> > I'll check this problem.
> > Vadim.
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>, "Vadim 
> > Rozenfeld" <vrozenfe@redhat.com> Cc: "Michael Roth"
> > <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, 
> > spice-devel@lists.freedesktop.org,
> > "Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-盧偉智-研究發展部" <paul.lu@cloudena.com> Sent: Saturday, February 4, 
> > 2012
> > 5:39:26 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > We tested the free build driver on 32-bit Windows 7 and the symptom 
> > was the same. In other words, the latest driver source from 
> > https://github.com/YanVugenfirer/ is buggy and it was not workable 
> > at all.
> > 
> > 
> > 
> > -----Original Message-----
> > From: Charles.Tsai-蔡清海-研究發展部
> > Sent: Friday, February 03, 2012 12:01 PM
> > To: 'Vadim Rozenfeld'
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel; Paul Lu-盧偉智-研究發展部 Subject: RE:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > Vadim,
> > 
> > I downloaded the latest Windows guest driver code from
> > (https://github.com/YanVugenfirer/) and built the test binary driver 
> > code. When I tested the release build Vioserial driver on 64-bit 
> > Windows 7, the driver seemed to wait for something to happen and the 
> > update driver Windows dialog simply just stayed in busy state. 
> > Finally, the Windows system entered a busy loop. However, if I 
> > tested the debugging build driver, the driver could be installed. 
> > But it took for a long time to complete.
> > 
> > Our installed Qemu is 1.0. Is there Qemu build requirement so that 
> > we can verify the vioserial driver? From my test, the latest code 
> > from
> > (https://github.com/YanVugenfirer/) seemed to be worst than the one 
> > we tested before. Let me know if we did anything wrong.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Friday, January 20, 2012 8:48 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel] 
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > This code is slightly buggy.
> > Please try Yan's repository
> > at github (https://github.com/YanVugenfirer/).
> > I believe that the most critical changes have been merged already by 
> > Yan into this public repository. I will ask to update binaries and 
> > sources at fedoraproject site as well.
> > 
> > Best regards,
> > Vadim.
> > 
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent: 
> > Friday, January 20, 2012 3:25:51 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > We downloaded the driver source from the following website.
> > ===========================================================
> > wget --no-check-certificate
> > https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/v
> > ir
> > tio-
> > win-prewhql-0.1-15-sources.zip
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 8:25 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel] 
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > Just to be sure that we are on the same page:
> > could you tell me about the origin of the source?
> > Is it the latest from the Yan's repository at github.com?
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent:
> > Thursday, January 19, 2012 12:06:16 PM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > We built it from the driver source. Up to this moment, we always use 
> > the same binary to test Qemu.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 5:39 PM
> > To: Charles.Tsai-蔡清海-研究發展部
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: RE: [Qemu-devel] 
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > Vadim,
> > > 
> > > It is SMP system.
> > 
> > What about vioserial driver itself?
> > did you build it from sources or is
> > it one, available through RHEL channels?
> > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Thursday, January 19, 2012 3:58 PM
> > > To: Charles.Tsai-蔡清海-研究發展部
> > > Cc: Michael Roth; Stefan Hajnoczi; 
> > > spice-devel@lists.freedesktop.org;
> > > Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > > OS on Qemu 0.15
> > > 
> > > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > Vadim,
> > > > 
> > > > I tested on Qemu 1.0.50. and found the VioSerial driver had 
> > > > problem to install on 64-bit Win7 guest. During the driver 
> > > > installation, the system hung after the driver being installed.
> > > > After I rebooted the guest OS, the Vioserial driver work. The 
> > > > hang system seemed to be found only during the driver installation.
> > > 
> > > On UP or SMP system?
> > > 
> > > > -----Original Message-----
> > > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > > To: Michael Roth
> > > > Cc: Charles.Tsai-蔡清海-研究發展部; Stefan Hajnoczi; 
> > > > spice-devel@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon 
> > > > Levy; qemu-devel
> > > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows 
> > > > guest OS on Qemu 0.15
> > > > 
> > > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > > On 01/15/2012 08:02 PM, Charles.Tsai-蔡清海-研究發展部 wrote:
> > > > > > Vadim,
> > > > > > 
> > > > > > Thank you for your prompt reply. Here are the information 
> > > > > > for our test case.
> > > > > > 
> > > > > > 
> > > > > > 1) we use the following command line to launch the guest OS
> > > > > > 
> > > > > > 
> > > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig 
> > > > > > -nodefaults -chardev 
> > > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.moni
> > > > > > to
> > > > > > r,
> > > > > > se rv er,nowait -mon
> > > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > > -rtc base=localtime
> > > > > > -device
> > > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=
> > > > > > on
> > > > > > ,a
> > > > > > dd
> > > > > > r=
> > > > > > 0x5.0x0 -drive
> > > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,
> > > > > > fo
> > > > > > rm
> > > > > > at
> > > > > > =r
> > > > > > aw -device
> > > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,
> > > > > > bo
> > > > > > ot
> > > > > > in
> > > > > > de
> > > > > > x=1
> > > > > > -netdev tap,fd=17,id=hostnet0 -device 
> > > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.
> > > > > > 0,
> > > > > > mu
> > > > > > lt
> > > > > > ifunction=on,addr=0x3.0x0
> > > > > > -chardev pty,id=charserial0
> > > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > > -device
> > > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel
> > > > > > 0,
> > > > > > id
> > > > > > =c
> > > > > > ha
> > > > > > nnel0,name=com.redhat.spice.0 -usb -device 
> > > > > > usb-tablet,id=input0 -spice 
> > > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device 
> > > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,ad
> > > > > > dr
> > > > > > =0
> > > > > > x4
> > > > > > .0
> > > > > > x0
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 2). In Guest Windows XP OS
> > > > > > 
> > > > > > 
> > > > > > When the following callback function of the vioserial device 
> > > > > > is called in guest OS. The allocated resources is empty.
> > > > > > 
> > > > > > 
> > > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to 
> > > > > > get the I/O address of the vioserial device and map the 
> > > > > > physical address to the logical address space.
> > > > > > 
> > > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > > > 
> > > > > > 
> > > > > > So far, we have tested Qemu 0.14 without any problem but 
> > > > > > Qemu
> > > > > > 0.15 seemed to be broken in vioserial device. Let me know if 
> > > > > > you need further information. Thanks.
> > > > > 
> > > > > Hi Charles,
> > > > > 
> > > > > What versions of the virtio-win drivers are you using?
> > > > > 
> > > > > I've been testing virtio-serial on windows using the latest 
> > > > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP
> > > > > SP3
> > > > > 
> > > > > works intermittently for me using RHEL6.0 virtio-win, as well 
> > > > > as the
> 
> drivers at:
> > > > I have seen some virtio serial port initialization problems on 
> > > > 1.0.50. Will try to look into this problem in the following week(s).
> > > > 
> > > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/
> > > > > bi
> > > > > n/
> > > > > 
> > > > > But I've been getting a mix of issues such as guest hangs, 
> > > > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > > > various non-critical error messages from qemu that seem to 
> > > > > coincide with the channel being open/closed (occasionally 
> > > > > resulting in the channel becoming unresponsive).
> > > > > 
> > > > > Do any of these seem similar to the behaviour you're seeing? 
> > > > > If so I'll see if the issues go away on 0.14.0 and follow-up 
> > > > > with a git bisect.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 12:32                                                               ` Charles.Tsai-蔡清海-研究發展部
@ 2012-03-19 12:48                                                                 ` Paul Lu-???-?????
  2012-03-19 20:31                                                                   ` Vadim Rozenfeld
  2012-04-02 15:27                                                                   ` Vadim Rozenfeld
  0 siblings, 2 replies; 50+ messages in thread
From: Paul Lu-???-????? @ 2012-03-19 12:48 UTC (permalink / raw)
  To: Charles.Tsai-???-?????, Vadim Rozenfeld
  Cc: Stefan Hajnoczi, qemu-devel, Michael Roth, Alon Levy,
	spice-devel, Alex Huang-???-?????

[-- Attachment #1: Type: text/plain, Size: 23866 bytes --]

Hi Vadim,
Here is the configuration:
/usr/local/bin/qemu-system-x86_64 \
 -localtime \
 -boot order=c,menu=on \
 -drive file=/var/lib/libvirt/images/xxx.img \
 -vga qxl \
 -cdrom /home/paul/Downloads/ISO/virtio-win-0.1-15.iso \
 -chardev spicevmc,id=vdagent,name=vdagent \
 -spice port=5930,disable-ticketing \
 -device virtio-serial-pci \
 -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
 -smp 1,cores=1 -m 2048 \
 -enable-kvm \
 -usbdevice tablet \
 -net nic -net user \
 -tb-size 0 \
 -qmp tcp:localhost:4444,nowait,server \
 -D /home/paul/MyQemuLog/xxx/xxx.log \
 -trace events=/home/paul/MyTestCase/xxx/events

QEMU Version: qemu-kvm commit 30c044521889195f54a9f2c21310894f545994e8


I use qmp command, query-pci, to check virtio-serial-pci BAR0. It shows 0xC140.
However, pci_default_read_config in pci.c return 0xC141 to Guest.
We also trace pci_default_wirte_config. 

At some point, the BAR0 will be overwritten to 0xC141. Here is the result,

virtio_set_status vdev 0x7fbeaba594a0 val 0
virtio_set_status vdev 0x7fbeaba594a0 val 0
qemu-system-x86_64: 10:1,len=4
qemu-system-x86_64: [WRITE]10:ffffffff, len=4
qemu-system-x86_64: 10:ffffffe1,len=4
qemu-system-x86_64: [WRITE]10:1, len=4
qemu-system-x86_64: [WRITE]10:c140, len=4
virtio_set_status vdev 0x7fbeaba594a0 val 0
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: 10:c141,len=4
virtio_set_status vdev 0x7fbeaba594a0 val 0
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: [WRITE]10:ffffffff, len=4
qemu-system-x86_64: 10:ffffffe1,len=4
qemu-system-x86_64: [WRITE]10:c141, len=4
virtio_set_status vdev 0x7fbeaba594a0 val 0
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: 10:c141,len=4
qemu-system-x86_64: 10:c141,len=4

I think the following code in pci_default_wirte_config cause the problem,
   for (i = 0; i < l; val >>= 8, ++i) {
        uint8_t wmask = d->wmask[addr + i];
        uint8_t w1cmask = d->w1cmask[addr + i];
        assert(!(wmask & w1cmask));
        d->config[addr + i] = (d->config[addr + i] & ~wmask) | (val & wmask);
        d->config[addr + i] &= ~(val & w1cmask); /* W1C: Write 1 to Clear */
    }

Could you elaborate it for us?


Best Regards,
Paul 

-----Original Message-----
From: Charles.Tsai-???-?????
Sent: Mon 3/19/2012 8:32 PM
To: Vadim Rozenfeld
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-?????
Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
 
Vadim,

My colleague will give you more  information we found here.
Qemu somehow in this particular case returns a wrong bar0 value.
In working case, the bar0 is 0xc140. But in failure case, the bar0 is changed to 0xC141.



-----Original Message-----
From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com] 
Sent: Monday, March 19, 2012 8:03 PM
To: Charles.Tsai-???-?????
Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-?????
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

On Monday, March 19, 2012 01:16:56 PM Charles.Tsai-???-????? wrote:
> Vadim,
> 
> What do you mean "qemu configuration string"? Is it the build 
> configuration or command line option? Please let me know it. Thanks.
> 
> 
Sorry, that was ambiguous.
I need the command line in order to reproduce the problem.

Cheers,
Vadim.

> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Monday, March 19, 2012 5:17 PM
> To: Charles.Tsai-???-?????
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; 
> Alex
> Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Monday, March 19, 2012 08:29:41 AM Charles.Tsai-???-????? wrote:
> > Hi Vadim,
> > 
> > 	We recently encountered with many issues with new Windows Virio
> > 
> > driver running on Qemu 1.0 and Qemu 1.0.50. My initial investigation 
> > was found that the new Viro driver could not be installed  before 
> > Qemu 1.0.50. But my colleague right now can install the new Virio 
> > driver on Qemu 1.0. Such a finding is quite a bit surprise to me.
> 
> Does Windows refuse to install a new driver or just stuck?
> 
> > 	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we
> > 
> > found the Virio driver failed to work after disabling and enabling 
> > the driver a few times. However, the failure case largely depends on 
> > the type of machine. On my machine, I did not see such a problem.
> 
> Are you running SMP or UP guest? What about others?
> 
> > 	Here are a few of questions that I want to clarify for us.
> > 	
> > 	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the
> > 
> > current head branch)?
> 
> Yes, as far as I know.
> 
> > 2. Does your QA team verify the new VirtIo driver prior Qemu 1.0.50?
> > Do you recommend us to do such a test or debugging?
> 
> Our QA test our drivers on top of RHEL only. I don't know exactly what 
> is the difference between our latest qemu-kvm and upstream
> 
> > 	3. When we disable and enable the new VirtIO driver several times 
> > on
> > 
> > either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after 
> > enabling the new VirtIO driver. What we found in this particular 
> > case is that the VirtIO driver was blocked inside the DPC routine where the
> > driver tried to ACK the interrupt. Based on my colleague's 		  
> > observation,
> 
> the
> 
> > I/O read from DPC was not trapped by the front-end driver(a Linux 
> > driver implemented for VirtIO)? Do you have any idea why this could
> > happen? Also, did you 	   	   find similar issues by you or your QA?
> 
> I know for sure that we have at least one race condition described here:
> https://bugzilla.redhat.com/show_bug.cgi?id=750773
> Hence, my question is whether your guest is SMP or UP?
> 
> > 	Please let us know these as soon as possible since we have a big
> > 
> > trouble to make the Virio driver(new and old driver) work stably in 
> > any Qemu official release including Qemu 1.0.50.
> 
> I'm going to push some changes, mostly related to the above bug.
> The DPC problem is completely new for me. Please post your qemu 
> configuration string and I'll try to reproduce it and investigate this 
> problem.
> 
> Best regards,
> Vadim.
> 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, February 08, 2012 3:47 PM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > I'm afraid to give you any recommendations regarding QEMU stability.
> > I usually work with qemu-kvm repository. But we are always doing 
> > WHQL process on RHEL platform only.
> > 
> > Maybe someone from the SPICE team can comment on your question?
> > 
> > Best regards,
> > Vadim.
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-???-?????" <paul.lu@cloudena.com> Sent: Wednesday, February 8, 
> > 2012
> > 4:39:22 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > Thanks. I tested Windows guest OS driver the over qemu-kvm-devel
> > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and 
> > it worked. The latest Windows guest driver from
> > (https://github.com/YanVugenfirer/) seems to have to work with Qemu 
> > 1.0.50. My previous test ran over Qemu 1.0 and that was why it 
> > failed to work.
> > 
> > As you mentioned, the latest driver from
> > (https://github.com/YanVugenfirer/) is much more stable than the old one.
> > But those drivers must work with Qemu 1.0.50 which was not verified 
> > to be stable. Do you think Qemu 1.0.50 is stable to be used? Please 
> > give us a recommendation.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Wednesday, February 08, 2012 3:06 AM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > I have tried to reproduce the problem several times without success.
> > 
> > QEMU:
> > QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel
> > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> > 
> > My guest info:
> > OS Name:                   Microsoft Windows 7 Enterprise
> > OS Version:                6.1.7600 N/A Build 7600
> > 
> > QEMU command line:
> > sudo
> > /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64 
> > -m
> > 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid
> > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc 
> > base=localtime -device 
> > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=
> > 0x
> > 5.0x
> > 0 -drive
> > file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0
> > ,f
> > orma
> > t=qcow2 -device
> > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootinde
> > x=
> > 1
> > -netdev tap,id=hostnet0 -device
> > e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multif
> > un
> > ctio
> > n=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device
> > isa-serial,chardev=charserial0,id=serial0 -chardev 
> > spicevmc,id=charchannel0,name=vdagent -device 
> > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=cha
> > nn
> > el0,
> > name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device
> > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0
> > x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot 
> > -enable-kvm
> > 
> > Drivers:
> > Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by 
> > myself with the sources from our internal repository (which contains 
> > absolutely the same code as in Yan's repository).
> > 
> > 
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-???-?????" <paul.lu@cloudena.com> Sent: Monday, February 6, 2012
> > 3:08:55 PM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > I did the same test again today and no luck to made it work.
> > Let us what you find since we might have missed some points when we 
> > did the test.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Sunday, February 05, 2012 2:14 AM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > Thanks,
> > I'll check this problem.
> > Vadim.
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > To: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>, "Vadim 
> > Rozenfeld" <vrozenfe@redhat.com> Cc: "Michael Roth"
> > <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>, 
> > spice-devel@lists.freedesktop.org,
> > "Alex Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > Lu-???-?????" <paul.lu@cloudena.com> Sent: Saturday, February 4, 
> > 2012
> > 5:39:26 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > We tested the free build driver on 32-bit Windows 7 and the symptom 
> > was the same. In other words, the latest driver source from 
> > https://github.com/YanVugenfirer/ is buggy and it was not workable 
> > at all.
> > 
> > 
> > 
> > -----Original Message-----
> > From: Charles.Tsai-???-?????
> > Sent: Friday, February 03, 2012 12:01 PM
> > To: 'Vadim Rozenfeld'
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: RE:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 
> > 0.15
> > 
> > Vadim,
> > 
> > I downloaded the latest Windows guest driver code from
> > (https://github.com/YanVugenfirer/) and built the test binary driver 
> > code. When I tested the release build Vioserial driver on 64-bit 
> > Windows 7, the driver seemed to wait for something to happen and the 
> > update driver Windows dialog simply just stayed in busy state. 
> > Finally, the Windows system entered a busy loop. However, if I 
> > tested the debugging build driver, the driver could be installed. 
> > But it took for a long time to complete.
> > 
> > Our installed Qemu is 1.0. Is there Qemu build requirement so that 
> > we can verify the vioserial driver? From my test, the latest code 
> > from
> > (https://github.com/YanVugenfirer/) seemed to be worst than the one 
> > we tested before. Let me know if we did anything wrong.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Friday, January 20, 2012 8:48 PM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel Subject: Re: [Qemu-devel] 
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > This code is slightly buggy.
> > Please try Yan's repository
> > at github (https://github.com/YanVugenfirer/).
> > I believe that the most critical changes have been merged already by 
> > Yan into this public repository. I will ask to update binaries and 
> > sources at fedoraproject site as well.
> > 
> > Best regards,
> > Vadim.
> > 
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent: 
> > Friday, January 20, 2012 3:25:51 AM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > We downloaded the driver source from the following website.
> > ===========================================================
> > wget --no-check-certificate
> > https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/v
> > ir
> > tio-
> > win-prewhql-0.1-15-sources.zip
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 8:25 PM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel Subject: Re: [Qemu-devel] 
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > Just to be sure that we are on the same page:
> > could you tell me about the origin of the source?
> > Is it the latest from the Yan's repository at github.com?
> > 
> > ----- Original Message -----
> > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent:
> > Thursday, January 19, 2012 12:06:16 PM
> > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > OS on Qemu 0.15
> > 
> > Vadim,
> > 
> > We built it from the driver source. Up to this moment, we always use 
> > the same binary to test Qemu.
> > 
> > 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Thursday, January 19, 2012 5:39 PM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; 
> > spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel Subject: RE: [Qemu-devel] 
> > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-???-????? wrote:
> > > Vadim,
> > > 
> > > It is SMP system.
> > 
> > What about vioserial driver itself?
> > did you build it from sources or is
> > it one, available through RHEL channels?
> > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Thursday, January 19, 2012 3:58 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi; 
> > > spice-devel@lists.freedesktop.org;
> > > Alex Huang-???-?????; Alon Levy; qemu-devel
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest 
> > > OS on Qemu 0.15
> > > 
> > > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-???-????? wrote:
> > > > Vadim,
> > > > 
> > > > I tested on Qemu 1.0.50. and found the VioSerial driver had 
> > > > problem to install on 64-bit Win7 guest. During the driver 
> > > > installation, the system hung after the driver being installed.
> > > > After I rebooted the guest OS, the Vioserial driver work. The 
> > > > hang system seemed to be found only during the driver installation.
> > > 
> > > On UP or SMP system?
> > > 
> > > > -----Original Message-----
> > > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > > To: Michael Roth
> > > > Cc: Charles.Tsai-???-?????; Stefan Hajnoczi; 
> > > > spice-devel@lists.freedesktop.org; Alex Huang-???-?????; Alon 
> > > > Levy; qemu-devel
> > > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows 
> > > > guest OS on Qemu 0.15
> > > > 
> > > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > > On 01/15/2012 08:02 PM, Charles.Tsai-???-????? wrote:
> > > > > > Vadim,
> > > > > > 
> > > > > > Thank you for your prompt reply. Here are the information 
> > > > > > for our test case.
> > > > > > 
> > > > > > 
> > > > > > 1) we use the following command line to launch the guest OS
> > > > > > 
> > > > > > 
> > > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig 
> > > > > > -nodefaults -chardev 
> > > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.moni
> > > > > > to
> > > > > > r,
> > > > > > se rv er,nowait -mon
> > > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > > -rtc base=localtime
> > > > > > -device
> > > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=
> > > > > > on
> > > > > > ,a
> > > > > > dd
> > > > > > r=
> > > > > > 0x5.0x0 -drive
> > > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,
> > > > > > fo
> > > > > > rm
> > > > > > at
> > > > > > =r
> > > > > > aw -device
> > > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,
> > > > > > bo
> > > > > > ot
> > > > > > in
> > > > > > de
> > > > > > x=1
> > > > > > -netdev tap,fd=17,id=hostnet0 -device 
> > > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.
> > > > > > 0,
> > > > > > mu
> > > > > > lt
> > > > > > ifunction=on,addr=0x3.0x0
> > > > > > -chardev pty,id=charserial0
> > > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > > -device
> > > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel
> > > > > > 0,
> > > > > > id
> > > > > > =c
> > > > > > ha
> > > > > > nnel0,name=com.redhat.spice.0 -usb -device 
> > > > > > usb-tablet,id=input0 -spice 
> > > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device 
> > > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,ad
> > > > > > dr
> > > > > > =0
> > > > > > x4
> > > > > > .0
> > > > > > x0
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 2). In Guest Windows XP OS
> > > > > > 
> > > > > > 
> > > > > > When the following callback function of the vioserial device 
> > > > > > is called in guest OS. The allocated resources is empty.
> > > > > > 
> > > > > > 
> > > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to 
> > > > > > get the I/O address of the vioserial device and map the 
> > > > > > physical address to the logical address space.
> > > > > > 
> > > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s 
> > > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > > > 
> > > > > > 
> > > > > > So far, we have tested Qemu 0.14 without any problem but 
> > > > > > Qemu
> > > > > > 0.15 seemed to be broken in vioserial device. Let me know if 
> > > > > > you need further information. Thanks.
> > > > > 
> > > > > Hi Charles,
> > > > > 
> > > > > What versions of the virtio-win drivers are you using?
> > > > > 
> > > > > I've been testing virtio-serial on windows using the latest 
> > > > > qemu.git (1.0). Linux guests work fine, but I've been having 
> > > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP
> > > > > SP3
> > > > > 
> > > > > works intermittently for me using RHEL6.0 virtio-win, as well 
> > > > > as the
> 
> drivers at:
> > > > I have seen some virtio serial port initialization problems on 
> > > > 1.0.50. Will try to look into this problem in the following week(s).
> > > > 
> > > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/
> > > > > bi
> > > > > n/
> > > > > 
> > > > > But I've been getting a mix of issues such as guest hangs, 
> > > > > vioser-test failing to enumerate any virtio-serial devices, or 
> > > > > various non-critical error messages from qemu that seem to 
> > > > > coincide with the channel being open/closed (occasionally 
> > > > > resulting in the channel becoming unresponsive).
> > > > > 
> > > > > Do any of these seem similar to the behaviour you're seeing? 
> > > > > If so I'll see if the issues go away on 0.14.0 and follow-up 
> > > > > with a git bisect.

[-- Attachment #2: Type: text/html, Size: 33279 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 12:48                                                                 ` Paul Lu-???-?????
@ 2012-03-19 20:31                                                                   ` Vadim Rozenfeld
  2012-04-02 15:27                                                                   ` Vadim Rozenfeld
  1 sibling, 0 replies; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-03-19 20:31 UTC (permalink / raw)
  To: Paul Lu-???-?????
  Cc: Stefan Hajnoczi, Michael Roth, qemu-devel, Alon Levy,
	Charles.Tsai-???-?????, spice-devel, Alex Huang-???-?????

On Monday, March 19, 2012 02:48:43 PM Paul Lu-???-????? wrote:
> Hi Vadim,
> Here is the configuration:
> /usr/local/bin/qemu-system-x86_64 \
>  -localtime \
>  -boot order=c,menu=on \
>  -drive file=/var/lib/libvirt/images/xxx.img \
>  -vga qxl \
>  -cdrom /home/paul/Downloads/ISO/virtio-win-0.1-15.iso \
>  -chardev spicevmc,id=vdagent,name=vdagent \
>  -spice port=5930,disable-ticketing \
>  -device virtio-serial-pci \
>  -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
>  -smp 1,cores=1 -m 2048 \
>  -enable-kvm \
>  -usbdevice tablet \
>  -net nic -net user \
>  -tb-size 0 \
>  -qmp tcp:localhost:4444,nowait,server \
>  -D /home/paul/MyQemuLog/xxx/xxx.log \
>  -trace events=/home/paul/MyTestCase/xxx/events
> 
> QEMU Version: qemu-kvm commit 30c044521889195f54a9f2c21310894f545994e8
> 
> 
> I use qmp command, query-pci, to check virtio-serial-pci BAR0. It shows
> 0xC140. However, pci_default_read_config in pci.c return 0xC141 to Guest.
> We also trace pci_default_wirte_config.
> 
> At some point, the BAR0 will be overwritten to 0xC141. Here is the result,
> 
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:1,len=4
> qemu-system-x86_64: [WRITE]10:ffffffff, len=4
> qemu-system-x86_64: 10:ffffffe1,len=4
> qemu-system-x86_64: [WRITE]10:1, len=4
> qemu-system-x86_64: [WRITE]10:c140, len=4
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: [WRITE]10:ffffffff, len=4
> qemu-system-x86_64: 10:ffffffe1,len=4
> qemu-system-x86_64: [WRITE]10:c141, len=4
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> 
> I think the following code in pci_default_wirte_config cause the problem,
>    for (i = 0; i < l; val >>= 8, ++i) {
>         uint8_t wmask = d->wmask[addr + i];
>         uint8_t w1cmask = d->w1cmask[addr + i];
>         assert(!(wmask & w1cmask));
>         d->config[addr + i] = (d->config[addr + i] & ~wmask) | (val &
> wmask); d->config[addr + i] &= ~(val & w1cmask); /* W1C: Write 1 to Clear
> */ }
> 
> Could you elaborate it for us?
> 
Hi Paul,
Give me a couple of days.
Best,
Vadim.
> 
> Best Regards,
> Paul
> 
> -----Original Message-----
> From: Charles.Tsai-???-?????
> Sent: Mon 3/19/2012 8:32 PM
> To: Vadim Rozenfeld
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: RE:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> My colleague will give you more  information we found here.
> Qemu somehow in this particular case returns a wrong bar0 value.
> In working case, the bar0 is 0xc140. But in failure case, the bar0 is
> changed to 0xC141.
> 
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Monday, March 19, 2012 8:03 PM
> To: Charles.Tsai-???-?????
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Monday, March 19, 2012 01:16:56 PM Charles.Tsai-???-????? wrote:
> > Vadim,
> > 
> > What do you mean "qemu configuration string"? Is it the build
> > configuration or command line option? Please let me know it. Thanks.
> 
> Sorry, that was ambiguous.
> I need the command line in order to reproduce the problem.
> 
> Cheers,
> Vadim.
> 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Monday, March 19, 2012 5:17 PM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > On Monday, March 19, 2012 08:29:41 AM Charles.Tsai-???-????? wrote:
> > > Hi Vadim,
> > > 
> > > 	We recently encountered with many issues with new Windows Virio
> > > 
> > > driver running on Qemu 1.0 and Qemu 1.0.50. My initial investigation
> > > was found that the new Viro driver could not be installed  before
> > > Qemu 1.0.50. But my colleague right now can install the new Virio
> > > driver on Qemu 1.0. Such a finding is quite a bit surprise to me.
> > 
> > Does Windows refuse to install a new driver or just stuck?
> > 
> > > 	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we
> > > 
> > > found the Virio driver failed to work after disabling and enabling
> > > the driver a few times. However, the failure case largely depends on
> > > the type of machine. On my machine, I did not see such a problem.
> > 
> > Are you running SMP or UP guest? What about others?
> > 
> > > 	Here are a few of questions that I want to clarify for us.
> > > 	
> > > 	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the
> > > 
> > > current head branch)?
> > 
> > Yes, as far as I know.
> > 
> > > 2. Does your QA team verify the new VirtIo driver prior Qemu 1.0.50?
> > > Do you recommend us to do such a test or debugging?
> > 
> > Our QA test our drivers on top of RHEL only. I don't know exactly what
> > is the difference between our latest qemu-kvm and upstream
> > 
> > > 	3. When we disable and enable the new VirtIO driver several times
> > > 
> > > on
> > > 
> > > either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after
> > > enabling the new VirtIO driver. What we found in this particular
> > > case is that the VirtIO driver was blocked inside the DPC routine where
> > > the driver tried to ACK the interrupt. Based on my colleague's
> > > observation,
> > 
> > the
> > 
> > > I/O read from DPC was not trapped by the front-end driver(a Linux
> > > driver implemented for VirtIO)? Do you have any idea why this could
> > > happen? Also, did you 	   	   find similar issues by you or your QA?
> > 
> > I know for sure that we have at least one race condition described here:
> > https://bugzilla.redhat.com/show_bug.cgi?id=750773
> > Hence, my question is whether your guest is SMP or UP?
> > 
> > > 	Please let us know these as soon as possible since we have a big
> > > 
> > > trouble to make the Virio driver(new and old driver) work stably in
> > > any Qemu official release including Qemu 1.0.50.
> > 
> > I'm going to push some changes, mostly related to the above bug.
> > The DPC problem is completely new for me. Please post your qemu
> > configuration string and I'll try to reproduce it and investigate this
> > problem.
> > 
> > Best regards,
> > Vadim.
> > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Wednesday, February 08, 2012 3:47 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > I'm afraid to give you any recommendations regarding QEMU stability.
> > > I usually work with qemu-kvm repository. But we are always doing
> > > WHQL process on RHEL platform only.
> > > 
> > > Maybe someone from the SPICE team can comment on your question?
> > > 
> > > Best regards,
> > > Vadim.
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > > Lu-???-?????" <paul.lu@cloudena.com> Sent: Wednesday, February 8,
> > > 2012
> > > 4:39:22 AM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > Thanks. I tested Windows guest OS driver the over qemu-kvm-devel
> > > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and
> > > it worked. The latest Windows guest driver from
> > > (https://github.com/YanVugenfirer/) seems to have to work with Qemu
> > > 1.0.50. My previous test ran over Qemu 1.0 and that was why it
> > > failed to work.
> > > 
> > > As you mentioned, the latest driver from
> > > (https://github.com/YanVugenfirer/) is much more stable than the old
> > > one. But those drivers must work with Qemu 1.0.50 which was not
> > > verified to be stable. Do you think Qemu 1.0.50 is stable to be used?
> > > Please give us a recommendation.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Wednesday, February 08, 2012 3:06 AM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > I have tried to reproduce the problem several times without success.
> > > 
> > > QEMU:
> > > QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel
> > > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> > > 
> > > My guest info:
> > > OS Name:                   Microsoft Windows 7 Enterprise
> > > OS Version:                6.1.7600 N/A Build 7600
> > > 
> > > QEMU command line:
> > > sudo
> > > /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64
> > > -m
> > > 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid
> > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc
> > > base=localtime -device
> > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=
> > > 0x
> > > 5.0x
> > > 0 -drive
> > > file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0
> > > ,f
> > > orma
> > > t=qcow2 -device
> > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootinde
> > > x=
> > > 1
> > > -netdev tap,id=hostnet0 -device
> > > e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multif
> > > un
> > > ctio
> > > n=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device
> > > isa-serial,chardev=charserial0,id=serial0 -chardev
> > > spicevmc,id=charchannel0,name=vdagent -device
> > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=cha
> > > nn
> > > el0,
> > > name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device
> > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0
> > > x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot
> > > -enable-kvm
> > > 
> > > Drivers:
> > > Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by
> > > myself with the sources from our internal repository (which contains
> > > absolutely the same code as in Yan's repository).
> > > 
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > > Lu-???-?????" <paul.lu@cloudena.com> Sent: Monday, February 6, 2012
> > > 3:08:55 PM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > I did the same test again today and no luck to made it work.
> > > Let us what you find since we might have missed some points when we
> > > did the test.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Sunday, February 05, 2012 2:14 AM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > Thanks,
> > > I'll check this problem.
> > > Vadim.
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>, "Vadim
> > > Rozenfeld" <vrozenfe@redhat.com> Cc: "Michael Roth"
> > > <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>,
> > > spice-devel@lists.freedesktop.org,
> > > "Alex Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > > Lu-???-?????" <paul.lu@cloudena.com> Sent: Saturday, February 4,
> > > 2012
> > > 5:39:26 AM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > We tested the free build driver on 32-bit Windows 7 and the symptom
> > > was the same. In other words, the latest driver source from
> > > https://github.com/YanVugenfirer/ is buggy and it was not workable
> > > at all.
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Charles.Tsai-???-?????
> > > Sent: Friday, February 03, 2012 12:01 PM
> > > To: 'Vadim Rozenfeld'
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: RE:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > Vadim,
> > > 
> > > I downloaded the latest Windows guest driver code from
> > > (https://github.com/YanVugenfirer/) and built the test binary driver
> > > code. When I tested the release build Vioserial driver on 64-bit
> > > Windows 7, the driver seemed to wait for something to happen and the
> > > update driver Windows dialog simply just stayed in busy state.
> > > Finally, the Windows system entered a busy loop. However, if I
> > > tested the debugging build driver, the driver could be installed.
> > > But it took for a long time to complete.
> > > 
> > > Our installed Qemu is 1.0. Is there Qemu build requirement so that
> > > we can verify the vioserial driver? From my test, the latest code
> > > from
> > > (https://github.com/YanVugenfirer/) seemed to be worst than the one
> > > we tested before. Let me know if we did anything wrong.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Friday, January 20, 2012 8:48 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> > > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > > 
> > > This code is slightly buggy.
> > > Please try Yan's repository
> > > at github (https://github.com/YanVugenfirer/).
> > > I believe that the most critical changes have been merged already by
> > > Yan into this public repository. I will ask to update binaries and
> > > sources at fedoraproject site as well.
> > > 
> > > Best regards,
> > > Vadim.
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent:
> > > Friday, January 20, 2012 3:25:51 AM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > We downloaded the driver source from the following website.
> > > ===========================================================
> > > wget --no-check-certificate
> > > https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/v
> > > ir
> > > tio-
> > > win-prewhql-0.1-15-sources.zip
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Thursday, January 19, 2012 8:25 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> > > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > > 
> > > Just to be sure that we are on the same page:
> > > could you tell me about the origin of the source?
> > > Is it the latest from the Yan's repository at github.com?
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent:
> > > Thursday, January 19, 2012 12:06:16 PM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > We built it from the driver source. Up to this moment, we always use
> > > the same binary to test Qemu.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Thursday, January 19, 2012 5:39 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel Subject: RE: [Qemu-devel]
> > > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > > 
> > > On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-???-????? wrote:
> > > > Vadim,
> > > > 
> > > > It is SMP system.
> > > 
> > > What about vioserial driver itself?
> > > did you build it from sources or is
> > > it one, available through RHEL channels?
> > > 
> > > > -----Original Message-----
> > > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > > Sent: Thursday, January 19, 2012 3:58 PM
> > > > To: Charles.Tsai-???-?????
> > > > Cc: Michael Roth; Stefan Hajnoczi;
> > > > spice-devel@lists.freedesktop.org;
> > > > Alex Huang-???-?????; Alon Levy; qemu-devel
> > > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > > OS on Qemu 0.15
> > > > 
> > > > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-???-????? wrote:
> > > > > Vadim,
> > > > > 
> > > > > I tested on Qemu 1.0.50. and found the VioSerial driver had
> > > > > problem to install on 64-bit Win7 guest. During the driver
> > > > > installation, the system hung after the driver being installed.
> > > > > After I rebooted the guest OS, the Vioserial driver work. The
> > > > > hang system seemed to be found only during the driver installation.
> > > > 
> > > > On UP or SMP system?
> > > > 
> > > > > -----Original Message-----
> > > > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > > > To: Michael Roth
> > > > > Cc: Charles.Tsai-???-?????; Stefan Hajnoczi;
> > > > > spice-devel@lists.freedesktop.org; Alex Huang-???-?????; Alon
> > > > > Levy; qemu-devel
> > > > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows
> > > > > guest OS on Qemu 0.15
> > > > > 
> > > > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > > > On 01/15/2012 08:02 PM, Charles.Tsai-???-????? wrote:
> > > > > > > Vadim,
> > > > > > > 
> > > > > > > Thank you for your prompt reply. Here are the information
> > > > > > > for our test case.
> > > > > > > 
> > > > > > > 
> > > > > > > 1) we use the following command line to launch the guest OS
> > > > > > > 
> > > > > > > 
> > > > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig
> > > > > > > -nodefaults -chardev
> > > > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.moni
> > > > > > > to
> > > > > > > r,
> > > > > > > se rv er,nowait -mon
> > > > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > > > -rtc base=localtime
> > > > > > > -device
> > > > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=
> > > > > > > on
> > > > > > > ,a
> > > > > > > dd
> > > > > > > r=
> > > > > > > 0x5.0x0 -drive
> > > > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,
> > > > > > > fo
> > > > > > > rm
> > > > > > > at
> > > > > > > =r
> > > > > > > aw -device
> > > > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,
> > > > > > > bo
> > > > > > > ot
> > > > > > > in
> > > > > > > de
> > > > > > > x=1
> > > > > > > -netdev tap,fd=17,id=hostnet0 -device
> > > > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.
> > > > > > > 0,
> > > > > > > mu
> > > > > > > lt
> > > > > > > ifunction=on,addr=0x3.0x0
> > > > > > > -chardev pty,id=charserial0
> > > > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > > > -device
> > > > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel
> > > > > > > 0,
> > > > > > > id
> > > > > > > =c
> > > > > > > ha
> > > > > > > nnel0,name=com.redhat.spice.0 -usb -device
> > > > > > > usb-tablet,id=input0 -spice
> > > > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,ad
> > > > > > > dr
> > > > > > > =0
> > > > > > > x4
> > > > > > > .0
> > > > > > > x0
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 2). In Guest Windows XP OS
> > > > > > > 
> > > > > > > 
> > > > > > > When the following callback function of the vioserial device
> > > > > > > is called in guest OS. The allocated resources is empty.
> > > > > > > 
> > > > > > > 
> > > > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to
> > > > > > > get the I/O address of the vioserial device and map the
> > > > > > > physical address to the logical address space.
> > > > > > > 
> > > > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > > > > 
> > > > > > > 
> > > > > > > So far, we have tested Qemu 0.14 without any problem but
> > > > > > > Qemu
> > > > > > > 0.15 seemed to be broken in vioserial device. Let me know if
> > > > > > > you need further information. Thanks.
> > > > > > 
> > > > > > Hi Charles,
> > > > > > 
> > > > > > What versions of the virtio-win drivers are you using?
> > > > > > 
> > > > > > I've been testing virtio-serial on windows using the latest
> > > > > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP
> > > > > > SP3
> > > > > > 
> > > > > > works intermittently for me using RHEL6.0 virtio-win, as well
> > > > > > as the
> > 
> > drivers at:
> > > > > I have seen some virtio serial port initialization problems on
> > > > > 1.0.50. Will try to look into this problem in the following
> > > > > week(s).
> > > > > 
> > > > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/
> > > > > > bi
> > > > > > n/
> > > > > > 
> > > > > > But I've been getting a mix of issues such as guest hangs,
> > > > > > vioser-test failing to enumerate any virtio-serial devices, or
> > > > > > various non-critical error messages from qemu that seem to
> > > > > > coincide with the channel being open/closed (occasionally
> > > > > > resulting in the channel becoming unresponsive).
> > > > > > 
> > > > > > Do any of these seem similar to the behaviour you're seeing?
> > > > > > If so I'll see if the issues go away on 0.14.0 and follow-up
> > > > > > with a git bisect.

^ permalink raw reply	[flat|nested] 50+ messages in thread

* Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
  2012-03-19 12:48                                                                 ` Paul Lu-???-?????
  2012-03-19 20:31                                                                   ` Vadim Rozenfeld
@ 2012-04-02 15:27                                                                   ` Vadim Rozenfeld
  1 sibling, 0 replies; 50+ messages in thread
From: Vadim Rozenfeld @ 2012-04-02 15:27 UTC (permalink / raw)
  To: Paul Lu-???-?????
  Cc: Stefan Hajnoczi, Michael Roth, qemu-devel, Alon Levy,
	Charles.Tsai-???-?????, spice-devel, Alex Huang-???-?????

On Monday, March 19, 2012 02:48:43 PM Paul Lu-???-????? wrote:
> Hi Vadim,
> Here is the configuration:
> /usr/local/bin/qemu-system-x86_64 \
>  -localtime \
>  -boot order=c,menu=on \
>  -drive file=/var/lib/libvirt/images/xxx.img \
>  -vga qxl \
>  -cdrom /home/paul/Downloads/ISO/virtio-win-0.1-15.iso \
>  -chardev spicevmc,id=vdagent,name=vdagent \
>  -spice port=5930,disable-ticketing \
>  -device virtio-serial-pci \
>  -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 \
>  -smp 1,cores=1 -m 2048 \
>  -enable-kvm \
>  -usbdevice tablet \
>  -net nic -net user \
>  -tb-size 0 \
>  -qmp tcp:localhost:4444,nowait,server \
>  -D /home/paul/MyQemuLog/xxx/xxx.log \
>  -trace events=/home/paul/MyTestCase/xxx/events
> 
> QEMU Version: qemu-kvm commit 30c044521889195f54a9f2c21310894f545994e8
> 
> 
> I use qmp command, query-pci, to check virtio-serial-pci BAR0. It shows
> 0xC140. However, pci_default_read_config in pci.c return 0xC141 to Guest.
> We also trace pci_default_wirte_config.
> 
> At some point, the BAR0 will be overwritten to 0xC141. Here is the result,
> 
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:1,len=4
> qemu-system-x86_64: [WRITE]10:ffffffff, len=4
> qemu-system-x86_64: 10:ffffffe1,len=4
> qemu-system-x86_64: [WRITE]10:1, len=4
> qemu-system-x86_64: [WRITE]10:c140, len=4
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: [WRITE]10:ffffffff, len=4
> qemu-system-x86_64: 10:ffffffe1,len=4
> qemu-system-x86_64: [WRITE]10:c141, len=4
> virtio_set_status vdev 0x7fbeaba594a0 val 0
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> qemu-system-x86_64: 10:c141,len=4
> 
> I think the following code in pci_default_wirte_config cause the problem,
>    for (i = 0; i < l; val >>= 8, ++i) {
>         uint8_t wmask = d->wmask[addr + i];
>         uint8_t w1cmask = d->w1cmask[addr + i];
>         assert(!(wmask & w1cmask));
>         d->config[addr + i] = (d->config[addr + i] & ~wmask) | (val &
> wmask); d->config[addr + i] &= ~(val & w1cmask); /* W1C: Write 1 to Clear
> */ }
> 
> Could you elaborate it for us?
> 
> 
> Best Regards,
> Paul
> 
Hi Paul,

1 in the lowest bit means that that it is an I/O space BAR.

Regarding installation problem on UP VM, the following patch should
fix this problem.
diff --git a/vioserial/sys/Device.c b/vioserial/sys/Device.c
index ecf2433..4fe1e12 100644
--- a/vioserial/sys/Device.c
+++ b/vioserial/sys/Device.c
@@ -547,8 +547,6 @@ VIOSerialEvtDeviceD0Entry(
     {
         VIOSerialInitAllQueues(Device);
         VIOSerialRenewAllPorts(Device);
-        TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "Setting 
VIRTIO_CONFIG_S_DRIVER_OK flag\n");
-        VirtIODeviceAddStatus(pContext->pIODevice, 
VIRTIO_CONFIG_S_DRIVER_OK);
     }
 
     return STATUS_SUCCESS;
@@ -601,6 +599,8 @@ VIOSerialEvtDeviceD0EntryPostInterruptsEnabled(
     }
     else if (PreviousState == WdfPowerDeviceD3Final)
     {
+        TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "Setting 
VIRTIO_CONFIG_S_DRIVER_OK flag\n");
+        VirtIODeviceAddStatus(pContext->pIODevice, 
VIRTIO_CONFIG_S_DRIVER_OK);
         TraceEvents(TRACE_LEVEL_INFORMATION, DBG_INIT, "Sending 
VIRTIO_CONSOLE_DEVICE_READY 1\n");
         VIOSerialSendCtrlMsg(WdfDevice, VIRTIO_CONSOLE_BAD_ID, 
VIRTIO_CONSOLE_DEVICE_READY, 1);
     }


Best regards,
Vadim.

> -----Original Message-----
> From: Charles.Tsai-???-?????
> Sent: Mon 3/19/2012 8:32 PM
> To: Vadim Rozenfeld
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: RE:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> Vadim,
> 
> My colleague will give you more  information we found here.
> Qemu somehow in this particular case returns a wrong bar0 value.
> In working case, the bar0 is 0xc140. But in failure case, the bar0 is
> changed to 0xC141.
> 
> 
> 
> -----Original Message-----
> From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> Sent: Monday, March 19, 2012 8:03 PM
> To: Charles.Tsai-???-?????
> Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org; Alex
> Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> 
> On Monday, March 19, 2012 01:16:56 PM Charles.Tsai-???-????? wrote:
> > Vadim,
> > 
> > What do you mean "qemu configuration string"? Is it the build
> > configuration or command line option? Please let me know it. Thanks.
> 
> Sorry, that was ambiguous.
> I need the command line in order to reproduce the problem.
> 
> Cheers,
> Vadim.
> 
> > -----Original Message-----
> > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > Sent: Monday, March 19, 2012 5:17 PM
> > To: Charles.Tsai-???-?????
> > Cc: Michael Roth; Stefan Hajnoczi; spice-devel@lists.freedesktop.org;
> > Alex
> > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > 
> > On Monday, March 19, 2012 08:29:41 AM Charles.Tsai-???-????? wrote:
> > > Hi Vadim,
> > > 
> > > 	We recently encountered with many issues with new Windows Virio
> > > 
> > > driver running on Qemu 1.0 and Qemu 1.0.50. My initial investigation
> > > was found that the new Viro driver could not be installed  before
> > > Qemu 1.0.50. But my colleague right now can install the new Virio
> > > driver on Qemu 1.0. Such a finding is quite a bit surprise to me.
> > 
> > Does Windows refuse to install a new driver or just stuck?
> > 
> > > 	When we tested the new Virio driver on both Qemu 1.0 and 1.0.50, we
> > > 
> > > found the Virio driver failed to work after disabling and enabling
> > > the driver a few times. However, the failure case largely depends on
> > > the type of machine. On my machine, I did not see such a problem.
> > 
> > Are you running SMP or UP guest? What about others?
> > 
> > > 	Here are a few of questions that I want to clarify for us.
> > > 	
> > > 	1. Can the new VirIO driver be installed prior Qemu 1.0.50(the
> > > 
> > > current head branch)?
> > 
> > Yes, as far as I know.
> > 
> > > 2. Does your QA team verify the new VirtIo driver prior Qemu 1.0.50?
> > > Do you recommend us to do such a test or debugging?
> > 
> > Our QA test our drivers on top of RHEL only. I don't know exactly what
> > is the difference between our latest qemu-kvm and upstream
> > 
> > > 	3. When we disable and enable the new VirtIO driver several times
> > > 
> > > on
> > > 
> > > either Qemu 1.0 or Qemu 1.0.50, VirtIo driver failed to work after
> > > enabling the new VirtIO driver. What we found in this particular
> > > case is that the VirtIO driver was blocked inside the DPC routine where
> > > the driver tried to ACK the interrupt. Based on my colleague's
> > > observation,
> > 
> > the
> > 
> > > I/O read from DPC was not trapped by the front-end driver(a Linux
> > > driver implemented for VirtIO)? Do you have any idea why this could
> > > happen? Also, did you 	   	   find similar issues by you or your QA?
> > 
> > I know for sure that we have at least one race condition described here:
> > https://bugzilla.redhat.com/show_bug.cgi?id=750773
> > Hence, my question is whether your guest is SMP or UP?
> > 
> > > 	Please let us know these as soon as possible since we have a big
> > > 
> > > trouble to make the Virio driver(new and old driver) work stably in
> > > any Qemu official release including Qemu 1.0.50.
> > 
> > I'm going to push some changes, mostly related to the above bug.
> > The DPC problem is completely new for me. Please post your qemu
> > configuration string and I'll try to reproduce it and investigate this
> > problem.
> > 
> > Best regards,
> > Vadim.
> > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Wednesday, February 08, 2012 3:47 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > I'm afraid to give you any recommendations regarding QEMU stability.
> > > I usually work with qemu-kvm repository. But we are always doing
> > > WHQL process on RHEL platform only.
> > > 
> > > Maybe someone from the SPICE team can comment on your question?
> > > 
> > > Best regards,
> > > Vadim.
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > > Lu-???-?????" <paul.lu@cloudena.com> Sent: Wednesday, February 8,
> > > 2012
> > > 4:39:22 AM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > Thanks. I tested Windows guest OS driver the over qemu-kvm-devel
> > > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git and
> > > it worked. The latest Windows guest driver from
> > > (https://github.com/YanVugenfirer/) seems to have to work with Qemu
> > > 1.0.50. My previous test ran over Qemu 1.0 and that was why it
> > > failed to work.
> > > 
> > > As you mentioned, the latest driver from
> > > (https://github.com/YanVugenfirer/) is much more stable than the old
> > > one. But those drivers must work with Qemu 1.0.50 which was not
> > > verified to be stable. Do you think Qemu 1.0.50 is stable to be used?
> > > Please give us a recommendation.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Wednesday, February 08, 2012 3:06 AM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > I have tried to reproduce the problem several times without success.
> > > 
> > > QEMU:
> > > QEMU 1.0.50 from git://git.qemu.org/qemu.git ,and qemu-kvm-devel
> > > 1.0.50 from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
> > > 
> > > My guest info:
> > > OS Name:                   Microsoft Windows 7 Enterprise
> > > OS Version:                6.1.7600 N/A Build 7600
> > > 
> > > QEMU command line:
> > > sudo
> > > /home/vrozenfe/work/upstream/qemu/x86_64-softmmu/qemu-system-x86_64
> > > -m
> > > 1024 -smp 1,sockets=1,cores=1,threads=1 -name SERIAL -uuid
> > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -monitor stdio -rtc
> > > base=localtime -device
> > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=on,addr=
> > > 0x
> > > 5.0x
> > > 0 -drive
> > > file=/home/vrozenfe/work/images/win7.qcow2,if=none,id=drive-ide0-0-0
> > > ,f
> > > orma
> > > t=qcow2 -device
> > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootinde
> > > x=
> > > 1
> > > -netdev tap,id=hostnet0 -device
> > > e1000,netdev=hostnet0,id=net0,mac=22:3A:40:3F:2F:12,bus=pci.0,multif
> > > un
> > > ctio
> > > n=on,addr=0x3.0x0 -chardev pty,id=charserial0 -device
> > > isa-serial,chardev=charserial0,id=serial0 -chardev
> > > spicevmc,id=charchannel0,name=vdagent -device
> > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=cha
> > > nn
> > > el0,
> > > name=com.redhat.spice.0 -usb -device usb-tablet,id=input0 -device
> > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0
> > > x0 -cdrom /home/vrozenfe/work/virtio-win-1.4.0.iso -snapshot
> > > -enable-kvm
> > > 
> > > Drivers:
> > > Both, MS signed from RHEL6.2 virtio-win RPM, as well as compiled by
> > > myself with the sources from our internal repository (which contains
> > > absolutely the same code as in Yan's repository).
> > > 
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > > Lu-???-?????" <paul.lu@cloudena.com> Sent: Monday, February 6, 2012
> > > 3:08:55 PM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > I did the same test again today and no luck to made it work.
> > > Let us what you find since we might have missed some points when we
> > > did the test.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Sunday, February 05, 2012 2:14 AM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: Re:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > Thanks,
> > > I'll check this problem.
> > > Vadim.
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>, "Vadim
> > > Rozenfeld" <vrozenfe@redhat.com> Cc: "Michael Roth"
> > > <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi" <stefanha@gmail.com>,
> > > spice-devel@lists.freedesktop.org,
> > > "Alex Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org>, "Paul
> > > Lu-???-?????" <paul.lu@cloudena.com> Sent: Saturday, February 4,
> > > 2012
> > > 5:39:26 AM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > We tested the free build driver on 32-bit Windows 7 and the symptom
> > > was the same. In other words, the latest driver source from
> > > https://github.com/YanVugenfirer/ is buggy and it was not workable
> > > at all.
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Charles.Tsai-???-?????
> > > Sent: Friday, February 03, 2012 12:01 PM
> > > To: 'Vadim Rozenfeld'
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel; Paul Lu-???-????? Subject: RE:
> > > [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu
> > > 0.15
> > > 
> > > Vadim,
> > > 
> > > I downloaded the latest Windows guest driver code from
> > > (https://github.com/YanVugenfirer/) and built the test binary driver
> > > code. When I tested the release build Vioserial driver on 64-bit
> > > Windows 7, the driver seemed to wait for something to happen and the
> > > update driver Windows dialog simply just stayed in busy state.
> > > Finally, the Windows system entered a busy loop. However, if I
> > > tested the debugging build driver, the driver could be installed.
> > > But it took for a long time to complete.
> > > 
> > > Our installed Qemu is 1.0. Is there Qemu build requirement so that
> > > we can verify the vioserial driver? From my test, the latest code
> > > from
> > > (https://github.com/YanVugenfirer/) seemed to be worst than the one
> > > we tested before. Let me know if we did anything wrong.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Friday, January 20, 2012 8:48 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> > > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > > 
> > > This code is slightly buggy.
> > > Please try Yan's repository
> > > at github (https://github.com/YanVugenfirer/).
> > > I believe that the most critical changes have been merged already by
> > > Yan into this public repository. I will ask to update binaries and
> > > sources at fedoraproject site as well.
> > > 
> > > Best regards,
> > > Vadim.
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent:
> > > Friday, January 20, 2012 3:25:51 AM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > We downloaded the driver source from the following website.
> > > ===========================================================
> > > wget --no-check-certificate
> > > https://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/src/v
> > > ir
> > > tio-
> > > win-prewhql-0.1-15-sources.zip
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Thursday, January 19, 2012 8:25 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel Subject: Re: [Qemu-devel]
> > > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > > 
> > > Just to be sure that we are on the same page:
> > > could you tell me about the origin of the source?
> > > Is it the latest from the Yan's repository at github.com?
> > > 
> > > ----- Original Message -----
> > > From: "Charles.Tsai-???-?????" <charles.tsai@cloudena.com>
> > > To: "Vadim Rozenfeld" <vrozenfe@redhat.com>
> > > Cc: "Michael Roth" <mdroth@linux.vnet.ibm.com>, "Stefan Hajnoczi"
> > > <stefanha@gmail.com>, spice-devel@lists.freedesktop.org, "Alex
> > > Huang-???-?????" <alex.huang@cloudena.com>, "Alon Levy"
> > > <alevy@redhat.com>, "qemu-devel" <qemu-devel@nongnu.org> Sent:
> > > Thursday, January 19, 2012 12:06:16 PM
> > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > OS on Qemu 0.15
> > > 
> > > Vadim,
> > > 
> > > We built it from the driver source. Up to this moment, we always use
> > > the same binary to test Qemu.
> > > 
> > > 
> > > -----Original Message-----
> > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > Sent: Thursday, January 19, 2012 5:39 PM
> > > To: Charles.Tsai-???-?????
> > > Cc: Michael Roth; Stefan Hajnoczi;
> > > spice-devel@lists.freedesktop.org;
> > > Alex
> > > Huang-???-?????; Alon Levy; qemu-devel Subject: RE: [Qemu-devel]
> > > [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
> > > 
> > > On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-???-????? wrote:
> > > > Vadim,
> > > > 
> > > > It is SMP system.
> > > 
> > > What about vioserial driver itself?
> > > did you build it from sources or is
> > > it one, available through RHEL channels?
> > > 
> > > > -----Original Message-----
> > > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > > Sent: Thursday, January 19, 2012 3:58 PM
> > > > To: Charles.Tsai-???-?????
> > > > Cc: Michael Roth; Stefan Hajnoczi;
> > > > spice-devel@lists.freedesktop.org;
> > > > Alex Huang-???-?????; Alon Levy; qemu-devel
> > > > Subject: RE: [Qemu-devel] [Spice-devel] Vioserial of Windows guest
> > > > OS on Qemu 0.15
> > > > 
> > > > On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-???-????? wrote:
> > > > > Vadim,
> > > > > 
> > > > > I tested on Qemu 1.0.50. and found the VioSerial driver had
> > > > > problem to install on 64-bit Win7 guest. During the driver
> > > > > installation, the system hung after the driver being installed.
> > > > > After I rebooted the guest OS, the Vioserial driver work. The
> > > > > hang system seemed to be found only during the driver installation.
> > > > 
> > > > On UP or SMP system?
> > > > 
> > > > > -----Original Message-----
> > > > > From: Vadim Rozenfeld [mailto:vrozenfe@redhat.com]
> > > > > Sent: Wednesday, January 18, 2012 4:57 AM
> > > > > To: Michael Roth
> > > > > Cc: Charles.Tsai-???-?????; Stefan Hajnoczi;
> > > > > spice-devel@lists.freedesktop.org; Alex Huang-???-?????; Alon
> > > > > Levy; qemu-devel
> > > > > Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows
> > > > > guest OS on Qemu 0.15
> > > > > 
> > > > > On Mon, 2012-01-16 at 19:50 -0600, Michael Roth wrote:
> > > > > > On 01/15/2012 08:02 PM, Charles.Tsai-???-????? wrote:
> > > > > > > Vadim,
> > > > > > > 
> > > > > > > Thank you for your prompt reply. Here are the information
> > > > > > > for our test case.
> > > > > > > 
> > > > > > > 
> > > > > > > 1) we use the following command line to launch the guest OS
> > > > > > > 
> > > > > > > 
> > > > > > > /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp
> > > > > > > 1,sockets=1,cores=1,threads=1 -name win_xp -uuid
> > > > > > > d9388815-ddd3-c38e-33c2-a9d5fcc7a775 -nodefconfig
> > > > > > > -nodefaults -chardev
> > > > > > > socket,id=charmonitor,path=/var/lib/libvirt/qemu/win_xp.moni
> > > > > > > to
> > > > > > > r,
> > > > > > > se rv er,nowait -mon
> > > > > > > chardev=charmonitor,id=monitor,mode=readline
> > > > > > > -rtc base=localtime
> > > > > > > -device
> > > > > > > virtio-serial-pci,id=virtio-serial0,bus=pci.0,multifunction=
> > > > > > > on
> > > > > > > ,a
> > > > > > > dd
> > > > > > > r=
> > > > > > > 0x5.0x0 -drive
> > > > > > > file=/media/Images/Windows-XP.img,if=none,id=drive-ide0-0-0,
> > > > > > > fo
> > > > > > > rm
> > > > > > > at
> > > > > > > =r
> > > > > > > aw -device
> > > > > > > ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,
> > > > > > > bo
> > > > > > > ot
> > > > > > > in
> > > > > > > de
> > > > > > > x=1
> > > > > > > -netdev tap,fd=17,id=hostnet0 -device
> > > > > > > rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:e8:dc:b1,bus=pci.
> > > > > > > 0,
> > > > > > > mu
> > > > > > > lt
> > > > > > > ifunction=on,addr=0x3.0x0
> > > > > > > -chardev pty,id=charserial0
> > > > > > > -device isa-serial,chardev=charserial0,id=serial0
> > > > > > > -chardev spicevmc,id=charchannel0,name=vdagent
> > > > > > > -device
> > > > > > > virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel
> > > > > > > 0,
> > > > > > > id
> > > > > > > =c
> > > > > > > ha
> > > > > > > nnel0,name=com.redhat.spice.0 -usb -device
> > > > > > > usb-tablet,id=input0 -spice
> > > > > > > port=5900,addr=0.0.0.0,disable-ticketing
> > > > > > > -vga qxl -global qxl-vga.vram_size=67108864 -device
> > > > > > > virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,ad
> > > > > > > dr
> > > > > > > =0
> > > > > > > x4
> > > > > > > .0
> > > > > > > x0
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 2). In Guest Windows XP OS
> > > > > > > 
> > > > > > > 
> > > > > > > When the following callback function of the vioserial device
> > > > > > > is called in guest OS. The allocated resources is empty.
> > > > > > > 
> > > > > > > 
> > > > > > > VIOSerialEvtDevicePrepareHardware() ---This function is to
> > > > > > > get the I/O address of the vioserial device and map the
> > > > > > > physical address to the logical address space.
> > > > > > > 
> > > > > > > I added the following trace and the value of nListSize is ZERO.
> > > > > > > TraceEvents(TRACE_LEVEL_INFORMATION, DBG_PNP, "%s
> > > > > > > (nListSize=%d)\n", __FUNCTION__,nListSize);
> > > > > > > 
> > > > > > > 
> > > > > > > So far, we have tested Qemu 0.14 without any problem but
> > > > > > > Qemu
> > > > > > > 0.15 seemed to be broken in vioserial device. Let me know if
> > > > > > > you need further information. Thanks.
> > > > > > 
> > > > > > Hi Charles,
> > > > > > 
> > > > > > What versions of the virtio-win drivers are you using?
> > > > > > 
> > > > > > I've been testing virtio-serial on windows using the latest
> > > > > > qemu.git (1.0). Linux guests work fine, but I've been having
> > > > > > various issues with Windows 7, XP SP3, and Server 2008 R1. XP
> > > > > > SP3
> > > > > > 
> > > > > > works intermittently for me using RHEL6.0 virtio-win, as well
> > > > > > as the
> > 
> > drivers at:
> > > > > I have seen some virtio serial port initialization problems on
> > > > > 1.0.50. Will try to look into this problem in the following
> > > > > week(s).
> > > > > 
> > > > > > http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/
> > > > > > bi
> > > > > > n/
> > > > > > 
> > > > > > But I've been getting a mix of issues such as guest hangs,
> > > > > > vioser-test failing to enumerate any virtio-serial devices, or
> > > > > > various non-critical error messages from qemu that seem to
> > > > > > coincide with the channel being open/closed (occasionally
> > > > > > resulting in the channel becoming unresponsive).
> > > > > > 
> > > > > > Do any of these seem similar to the behaviour you're seeing?
> > > > > > If so I'll see if the issues go away on 0.14.0 and follow-up
> > > > > > with a git bisect.

^ permalink raw reply related	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2012-04-02 15:28 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <C7C4AF833A4C6B488E44D309A5B03905011FAFFB@be02.systex.tw>
     [not found] ` <20120101114514.GC20432@garlic.redhat.com>
     [not found]   ` <C7C4AF833A4C6B488E44D309A5B03905011FB003@be02.systex.tw>
     [not found]     ` <20120101141928.GE20432@garlic.redhat.com>
     [not found]       ` <C7C4AF833A4C6B488E44D309A5B03905011FB031@be02.systex.tw>
     [not found]         ` <20120102101855.GH20432@garlic.redhat.com>
     [not found]           ` <C7C4AF833A4C6B488E44D309A5B03905011FB12E@be02.systex.tw>
     [not found]             ` <20120102114919.GJ20432@garlic.redhat.com>
     [not found]               ` <C7C4AF833A4C6B488E44D309A5B03905012876FB@be02.systex.tw>
2012-01-15 11:27                 ` [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15 Stefan Hajnoczi
2012-01-15 11:41                   ` Vadim Rozenfeld
2012-01-16  2:02                     ` Charles.Tsai-蔡清海-研究發展部
2012-01-16  7:13                       ` Vadim Rozenfeld
2012-01-16  9:17                         ` Charles.Tsai-蔡清海-研究發展部
2012-01-16 21:27                           ` Vadim Rozenfeld
2012-01-17  2:03                             ` Charles.Tsai-蔡清海-研究發展部
2012-01-17 20:59                               ` Vadim Rozenfeld
2012-01-16  8:37                       ` Stefan Hajnoczi
2012-01-16  9:32                         ` Charles.Tsai-蔡清海-研究發展部
2012-01-16  9:48                           ` Stefan Hajnoczi
2012-01-16 10:30                             ` Charles.Tsai-蔡清海-研究�l展部
2012-01-16 10:48                               ` Stefan Hajnoczi
2012-01-16  9:50                           ` Dominique Rodrigues
2012-01-16 10:09                             ` Charles.Tsai-蔡清海-研究發展部
2012-01-17  1:50                       ` Michael Roth
2012-01-17 20:56                         ` Vadim Rozenfeld
2012-01-19  1:41                           ` Charles.Tsai-蔡清海-研究發展部
2012-01-19  7:58                             ` Vadim Rozenfeld
2012-01-19  8:33                               ` Charles.Tsai-蔡清海-研究發展部
2012-01-19  9:38                                 ` Vadim Rozenfeld
2012-01-19 10:06                                   ` Charles.Tsai-蔡清海-研究發展部
2012-01-19 12:25                                     ` Vadim Rozenfeld
2012-01-20  1:25                                       ` Charles.Tsai-蔡清海-研究發展部
2012-01-20 12:47                                         ` Vadim Rozenfeld
2012-01-23 13:25                                           ` Charles.Tsai-蔡清海-研究發展部
2012-02-03  4:00                                           ` Charles.Tsai-蔡清海-研究發展部
2012-02-04  3:39                                           ` Charles.Tsai-蔡清海-研究發展部
2012-02-04 18:14                                             ` Vadim Rozenfeld
2012-02-06 13:08                                               ` Charles.Tsai-蔡清海-研究發展部
2012-02-07 19:06                                                 ` Vadim Rozenfeld
2012-02-08  2:39                                                   ` Charles.Tsai-蔡清海-研究發展部
2012-02-08  7:47                                                     ` Vadim Rozenfeld
2012-02-08  9:23                                                       ` David Jaša
2012-03-19  6:29                                                       ` Charles.Tsai-蔡清海-研究發展部
2012-03-19  9:16                                                         ` Vadim Rozenfeld
2012-03-19 11:16                                                           ` Charles.Tsai-蔡清海-研究發展部
2012-03-19 12:02                                                             ` Vadim Rozenfeld
2012-03-19 12:32                                                               ` Charles.Tsai-蔡清海-研究發展部
2012-03-19 12:48                                                                 ` Paul Lu-???-?????
2012-03-19 20:31                                                                   ` Vadim Rozenfeld
2012-04-02 15:27                                                                   ` Vadim Rozenfeld
2012-03-19 10:12                                                         ` Christophe Fergeau
2012-03-19 10:28                                                           ` Charles.Tsai-蔡清海-研究發展部
2012-03-19 11:42                                                           ` Vadim Rozenfeld
2012-03-19 11:56                                                             ` Christophe Fergeau
2012-03-19 12:07                                                               ` Vadim Rozenfeld
2012-01-19  8:09                             ` Stefan Hajnoczi
2012-01-19 11:25                               ` Alon Levy
2012-01-20  1:23                                 ` Charles.Tsai-蔡清海-研究發展部

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.