From: Vadim Rozenfeld <vrozenfe@redhat.com>
To: "Charles.Tsai-蔡清海-研究發展部" <charles.tsai@cloudena.com>
Cc: "Stefan Hajnoczi" <stefanha@gmail.com>,
"Alex Huang-黃必賢-研究發展部" <alex.huang@cloudena.com>,
"Alon Levy" <alevy@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
spice-devel@lists.freedesktop.org
Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15
Date: Mon, 16 Jan 2012 09:13:36 +0200 [thread overview]
Message-ID: <1326698016.2734.13.camel@vadimr.dell> (raw)
In-Reply-To: <C7C4AF833A4C6B488E44D309A5B0390501287738@be02.systex.tw>
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.
>
next prev parent reply other threads:[~2012-01-16 7:14 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
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-蔡清海-研究發展部
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1326698016.2734.13.camel@vadimr.dell \
--to=vrozenfe@redhat.com \
--cc=alevy@redhat.com \
--cc=alex.huang@cloudena.com \
--cc=charles.tsai@cloudena.com \
--cc=qemu-devel@nongnu.org \
--cc=spice-devel@lists.freedesktop.org \
--cc=stefanha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).