From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wong Subject: Re: [ANNOUNCE] kvm-83 release Date: Wed, 14 Jan 2009 01:40:27 +0800 Message-ID: <496CD20B.6020404@wonghome.net> References: <496C9CE0.2080103@redhat.com> <496CBE09.4060801@wonghome.net> <1231867653.4290.196.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Avi Kivity , KVM list To: Mark McLoughlin Return-path: Received: from maiden103-208.ctimail.com ([61.93.57.208]:37510 "EHLO maiden103.ctimail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751290AbZAMRlG (ORCPT ); Tue, 13 Jan 2009 12:41:06 -0500 In-Reply-To: <1231867653.4290.196.camel@localhost.localdomain> Sender: kvm-owner@vger.kernel.org List-ID: Hi Mark, i want to try, but i don't know where can download snapshot source code, i'm long time no use linux. Where can i download kvm snapshot source code? kernel.org? or? On 2009=A6~01=A4=EB14=A4=E9 01:27, Mark McLoughlin wrote: > Hi John, > > On Wed, 2009-01-14 at 00:15 +0800, John Wong wrote: > =20 >> Hi, i installed kvm-83 on xubuntu-amd64/kernel-2.6.7-11. >> i notice some problem with -net downscript. >> my kvm start up script like this: >> qemu-system-x86_64 ... ... -net=20 >> tap,ifname=3Dtap0,script=3D/path/kvm-ifup,downscript=3D/path/kvm-ifd= own >> when the guest shutdown, kvm pass all argument to downscript. >> >> the command like this (kvm-83): >> /path/kvm-ifdown >> "tap0,script=3D/path/kvm-ifup,downscript=3D/path/kvm-ifdown" >> >> kvm-82 only pass tap0 to downscript like this: >> /path/kvm-ifdown "tap0" >> =20 > > Thanks for the report. Can you try this simple change and see if it > fixes it for you? > > --- qemu/net.c > +++ qemu/net.c > @@ -1740,7 +1740,7 @@ void net_cleanup(void) > TAPState *s =3D vc->opaque; > =20 > if (strcmp(vc->model, "tap") =3D=3D 0 && > - sscanf(vc->info_str, "ifname=3D%63s ", ifname) =3D= =3D 1 && > + sscanf(vc->info_str, "ifname=3D%63s,", ifname) =3D= =3D 1 && > s->down_script[0]) > launch_script(s->down_script, ifname, s->fd); > } > > Thanks, > Mark. > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > =20