All of lore.kernel.org
 help / color / mirror / Atom feed
* Virtio on Xen, prototype
@ 2011-08-08 10:26 Wei Liu
       [not found] ` <7B18E5A6-B933-466D-AC75-9CB056FAE222@rice.edu>
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Liu @ 2011-08-08 10:26 UTC (permalink / raw)
  To: xen-devel; +Cc: stefano.stabellini, liuw

Hi, all

I've finished a virtio on xen prototype and compose a page on Xen wiki
to guide people who may want to give it a try.

http://wiki.xen.org/xenwiki/VirtioOnXen

I would like to thank Stefano, IanC and Konrad for their help during
this period.

Wei.

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

* Re: Virtio on Xen, prototype
       [not found] ` <7B18E5A6-B933-466D-AC75-9CB056FAE222@rice.edu>
@ 2011-08-31  5:02   ` Wei Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Wei Liu @ 2011-08-31  5:02 UTC (permalink / raw)
  To: Kaushik Kumar Ram; +Cc: xen-devel, Wei LIU

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

CC'ing xen-devel...

On Tue, Aug 30, 2011 at 5:27 AM, Kaushik Kumar Ram <kaushik@rice.edu> wrote:
> Hi Wei,
>
> I am trying to test your virtio port to Xen in the PV configuration. So I have a fully PV guest and I am

Thanks for your interests in this project. :) This is just prototype,
no wonder it is buggy...

> trying to setup qemu only to be used a virtio network backend. I applied all the patches available in the
> link below and started the guest. But the virtio device never comes and in fact qemu is never started in Dom0.
>

Are those patches applied cleanly? Did you have the required
changesets mentioned in the wiki? Did you boot up your PV domain
successfully? If not, what did the QEMU log and Xen log (xl dmesg)
say?

> First, is this scenario even possible?  I looked through the libxl source. But I don't see qemu being started
> for this scenario. Maybe some parts of libxl still needs to be updated?
>

The patch to start upstream QEMU for PV guest went into the tree six
weeks ago. That is

changeset 23727:2383077a5ae6
libxl: enabling upstream qemu as pure pv backend.

> I am also attaching my guest config file here.
>

At first glance, your configuration seems all right to me.

Did you compile the virtio_ring and load it manually? Please note that
we can't use original virtio_ring implementation.

If you loaded all the modules successfully, what did `dmesg` say?

I also attach my configuration file, I have more detail setup for
device_model_args_pv. I will update wiki page.

Hope this helps.

Wei.

> Thanks.
>
> --Kaushik
>

[-- Attachment #2: debian-virtio.pv --]
[-- Type: application/octet-stream, Size: 1382 bytes --]

# This is a config file for pv guest
kernel = '/boot/vmlinuz-2.6.39-liuw-virtio+'
ramdisk = '/boot/initrd.img-2.6.39-liuw-virtio+'
name = "Debian-PV"
memory = 512

device_model_version = 'qemu-xen'
#device_model_override = '/mnt/workspace/qemu/i386-softmmu/qemu'
#device_model_override = '/mnt/workspace/qemu-dm/i386-softmmu/qemu'
device_model_override = '/mnt/workspace/stabellini-qemu/i386-softmmu/qemu'
#device_model_args_pv = ['-serial', 'pty']

# use this line if you want to enable virtio net
device_model_args_pv = ["-net", "tap,vlan=0,script=no", "-net", "tap,vlan=1,script=no", "-nographic"]

vif=['bridge=br0,model=virtio,mac=fe:11:22:33:44:55', 'type=ioemu,bridge=br0,model=rtl8139,mac=fe:11:22:33:44:56']
#vif=['bridge=br0,model=virtio,mac=fe:11:22:33:44:55', 'type=ioemu,bridge=br0,mac=fe:11:22:33:44:56']
#vif=['bridge=br0,model=rtl8139,mac=fe:11:22:33:44:56']
#vif=['bridge=br0,model=virtio,mac=fe:11:22:33:44:55']

disk = ["file:/mnt/workspace/disk-raw-pv.img,xvda,w", "file:/mnt/workspace/disk-raw-pv2.img,xvdb,w", "file:/mnt/workspace/debian6.iso,xvdc:cdrom,r", "file:/mnt/workspace/test-raw.img,vda,w"]

#disk = ["file:/mnt/workspace/disk-raw-pv.img,xvda,w", "file:/mnt/workspace/debian6.iso,xvdc:cdrom,r"]

root = '/dev/xvda1 ro'
extra = 'tty=hvc0 xencons=tty iommu=soft debug loglevel=10'

boot='cd'

vfb=['vnc=0,vnclisten=0.0.0.0']

#serial='pty'
nographic=1


[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2011-08-31  5:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-08 10:26 Virtio on Xen, prototype Wei Liu
     [not found] ` <7B18E5A6-B933-466D-AC75-9CB056FAE222@rice.edu>
2011-08-31  5:02   ` Wei Liu

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.