Received: from [140.186.70.92] (port=33677 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P37J4-0003Of-Cp for qemu-devel@nongnu.org; Tue, 05 Oct 2010 09:12:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P37I8-0007LY-Pe for qemu-devel@nongnu.org; Tue, 05 Oct 2010 09:11:45 -0400 Received: from adelie.canonical.com ([91.189.90.139]:57156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P37I8-0007LI-JF for qemu-devel@nongnu.org; Tue, 05 Oct 2010 09:10:48 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1P37I6-0007Ue-Ha for ; Tue, 05 Oct 2010 14:10:46 +0100 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id EE2762E80BF for ; Tue, 5 Oct 2010 13:10:45 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 05 Oct 2010 13:03:23 -0000 From: Moshroum Sender: bounces@canonical.com References: <20101005124907.5972.17735.malonedeb@palladium.canonical.com> Message-Id: <20101005130324.5718.23026.launchpad@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 655120] Re: VirtFS EFAULT when accessing not existing files Reply-To: Bug 655120 <655120@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Description changed: - use as client Debian squeeze i386 with a custom kernel: + =C2=A0use as client Debian squeeze i386 with a custom kernel: Linux (none) 2.6.35.5 #3 Thu Sep 23 18:36:02 UTC 2010 i686 GNU/Linux = And as host Debian squeeze amd64 Linux asd 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/L= inux = kvm version is: kvm-88-5908-gdd67374 = Started the client using: sudo /usr/local/kvm/bin/qemu-system-x86_64 -m 1024 -kernel linux-2.6.35.5= .qemu -drive file=3Droot.img,if=3Dvirtio -net nic,macaddr=3D02:ca:ff:ee:ba:= be,model=3Dvirtio,vlan=3D1 -net tap,ifname=3Dtap1,vlan=3D1,script=3Dno -vir= tfs local,path=3D/host,security_model=3Dmapped,mount_tag=3Dhost -nographic = I've done following inside the guest: + $ mount -t 9p -o trans=3Dvirtio,version=3D9p2000.L host /mnt + $ ls -l /mnt/not-existing + ls: cannot access /mnt/not-existing: Bad address + = + This does not happen when not using 9p2000.L $ mount -t 9p -o trans=3Dvirtio host /mnt $ ls -l /mnt/not-existing - ls: cannot access /mnt/not-existing: Bad address + ls: cannot access /mnt/not-existing: No such file or directory = This return code will for example break make or many other tools. $ echo $PATH /mnt/usr/bin:/mnt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/b= in:/sbin:/bin $ make KERNELDIR=3D/usr/src/linux make: execvp: pwd: Bad address Makefile:54: /Makefile.linux: No such file or directory make: *** No rule to make target `/Makefile.linux'. Stop. -- = VirtFS EFAULT when accessing not existing files https://bugs.launchpad.net/bugs/655120 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: =C2=A0use as client Debian squeeze i386 with a custom kernel: Linux (none) 2.6.35.5 #3 Thu Sep 23 18:36:02 UTC 2010 i686 GNU/Linux And as host Debian squeeze amd64 Linux asd 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Lin= ux kvm version is: kvm-88-5908-gdd67374 Started the client using: sudo /usr/local/kvm/bin/qemu-system-x86_64 -m 1024 -kernel linux-2.6.35.5.q= emu -drive file=3Droot.img,if=3Dvirtio -net nic,macaddr=3D02:ca:ff:ee:ba:be= ,model=3Dvirtio,vlan=3D1 -net tap,ifname=3Dtap1,vlan=3D1,script=3Dno -virtf= s local,path=3D/host,security_model=3Dmapped,mount_tag=3Dhost -nographic I've done following inside the guest: $ mount -t 9p -o trans=3Dvirtio,version=3D9p2000.L host /mnt $ ls -l /mnt/not-existing ls: cannot access /mnt/not-existing: Bad address This does not happen when not using 9p2000.L $ mount -t 9p -o trans=3Dvirtio host /mnt $ ls -l /mnt/not-existing ls: cannot access /mnt/not-existing: No such file or directory This return code will for example break make or many other tools. $ echo $PATH /mnt/usr/bin:/mnt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin= :/sbin:/bin $ make KERNELDIR=3D/usr/src/linux make: execvp: pwd: Bad address Makefile:54: /Makefile.linux: No such file or directory make: *** No rule to make target `/Makefile.linux'. Stop.