Re: console lock up

2007-07-11 Thread Rusty Russell
On Wed, 2007-07-11 at 22:46 +1000, Sam Abed wrote: > 1:1235:respawn:/sbin/mingetty tty0 s/tty0/hvc0/ and it works (we don't have multiple virtual consoles in lguest) Sorry for the runaround: I'll update the FAQ. Thanks! Rusty. ___ Virtualization maili

Re: lguest over qemu

2007-07-11 Thread Rusty Russell
On Wed, 2007-07-11 at 11:51 +0200, Matias Zabaljauregui wrote: > Hi, > > I'm setting my lguest playing environment with qemu, but didn't have a > good start... maybe because my modest laptop only has 512Mb of RAM. > > This is my qemu command: > > qemu -s -no-kqemu -m 4

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread David Miller
From: Rusty Russell <[EMAIL PROTECTED]> Date: Thu, 12 Jul 2007 12:21:33 +1000 > Dave, I think you're the only one (so far?) with multiple irqs. Luckily there are known hw implementations with that issue so I won't be weird for long :) > It's not clear that guest-controlled interrupt mitigation i

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Rusty Russell
On Wed, 2007-07-11 at 13:46 +0200, Christian Borntraeger wrote: > Am Mittwoch, 11. Juli 2007 schrieb Rusty Russell: > > There will be some internal limit on how many buffers the virtio > > implementation supports, but depends on that implementation. It could > > be a number of buffers or a total n

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Rusty Russell
On Wed, 2007-07-11 at 13:44 -0700, David Miller wrote: > From: Christian Borntraeger <[EMAIL PROTECTED]> > Date: Wed, 11 Jul 2007 12:45:40 +0200 > > > Am Mittwoch, 4. Juli 2007 schrieb Rusty Russell: > > > +static void receive_skb(struct net_device *dev, struct sk_buff *skb, > > [...] > > > + neti

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread David Miller
From: Christian Borntraeger <[EMAIL PROTECTED]> Date: Wed, 11 Jul 2007 12:45:40 +0200 > Am Mittwoch, 4. Juli 2007 schrieb Rusty Russell: > > +static void receive_skb(struct net_device *dev, struct sk_buff *skb, > [...] > > + netif_rx(skb); > > In the NAPI case, we should use netif_receive_skb,

RE: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Caitlin Bestler
[EMAIL PROTECTED] wrote: > On Wed, 2007-07-11 at 12:28 +0200, Christian Borntraeger wrote: >> Am Mittwoch, 4. Juli 2007 schrieb Rusty Russell: >>> +static void try_fill_recv(struct virtnet_info *vi) > >> Hmm, so it allocates skbs until oom or until add_buf fails, right? > > Yep. > >> Do you expe

Fwd: console lock up

2007-07-11 Thread Sam Abed
oops forgot to reply all -- Forwarded message -- From: Sam Abed <[EMAIL PROTECTED]> Date: Jul 11, 2007 10:46 PM Subject: Re: console lock up To: Rusty Russell <[EMAIL PROTECTED]> Hello, Thanks for the taking the time to reply On 7/11/07, Rusty Russell <[EMAIL PROTECTED]> wrote

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Christian Borntraeger
Am Mittwoch, 11. Juli 2007 schrieb Rusty Russell: > There will be some internal limit on how many buffers the virtio > implementation supports, but depends on that implementation. It could > be a number of buffers or a total number of descriptors. I would suggest to implement a limit in the devic

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Rusty Russell
On Wed, 2007-07-11 at 12:45 +0200, Christian Borntraeger wrote: > Am Mittwoch, 4. Juli 2007 schrieb Rusty Russell: > > +static void receive_skb(struct net_device *dev, struct sk_buff *skb, > [...] > > + netif_rx(skb); > > In the NAPI case, we should use netif_receive_skb, no? Oops, well spotted

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Rusty Russell
On Wed, 2007-07-11 at 12:28 +0200, Christian Borntraeger wrote: > Am Mittwoch, 4. Juli 2007 schrieb Rusty Russell: > > +static void try_fill_recv(struct virtnet_info *vi) > Hmm, so it allocates skbs until oom or until add_buf fails, right? Yep. > Do you expect the add_buf call to fail if we have

Re: console lock up

2007-07-11 Thread Rusty Russell
On Tue, 2007-07-10 at 22:46 +1000, Sam Abed wrote: > hello, > I am using 2.6.21, lguest-2.6.21-307.patch.gz and an image from > http://uml.nagafix.co.uk/Fedora7/Fedora7-x86-root_fs.bz2 > > the console hangs, is this expected or caused by the image? I can > still ssh to it or if I boot in single

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Christian Borntraeger
Am Mittwoch, 4. Juli 2007 schrieb Rusty Russell: > +static void receive_skb(struct net_device *dev, struct sk_buff *skb, [...] > + netif_rx(skb); In the NAPI case, we should use netif_receive_skb, no? Christian ___ Virtualization mailing list Virtua

Re: [PATCH 3/3] Virtio draft IV: the net driver

2007-07-11 Thread Christian Borntraeger
Am Mittwoch, 4. Juli 2007 schrieb Rusty Russell: > +static void try_fill_recv(struct virtnet_info *vi) > +{ > + struct sk_buff *skb; > + struct scatterlist sg[MAX_SKB_FRAGS]; > + int num, err; > + > + for (;;) { > + skb = netdev_alloc_skb(vi->ndev, MAX_PACKET_LEN); > +

lguest over qemu

2007-07-11 Thread Matias Zabaljauregui
Hi, I'm setting my lguest playing environment with qemu, but didn't have a good start... maybe because my modest laptop only has 512Mb of RAM. This is my qemu command: qemu -s -no-kqemu -m 400 -hda linux26.img -net nic,model=rtl8139 -net tap ( linux26.img includes