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