From: Alyssa Ross <hi@alyssa.is> To: Stefan Hajnoczi <stefanha@redhat.com> Cc: Nikos Dragazis <ndragazis@arrikto.com>, qemu-devel@nongnu.org Subject: Re: Testing the virtio-vhost-user QEMU patch Date: Tue, 21 Jul 2020 16:02:38 +0000 Message-ID: <87d04osvoh.fsf@alyssa.is> (raw) In-Reply-To: <20200721083048.GB144170@stefanha-x1.localdomain> Stefan Hajnoczi <stefanha@redhat.com> writes: > On Tue, Jul 21, 2020 at 07:14:38AM +0000, Alyssa Ross wrote: >> Hi -- I hope it's okay me reaching out like this. >> >> I've been trying to test out the virtio-vhost-user implementation that's >> been posted to this list a couple of times, but have been unable to get >> it to boot a kernel following the steps listed either on >> <https://wiki.qemu.org/Features/VirtioVhostUser> or >> <https://ndragazis.github.io/dpdk-vhost-vvu-demo.html>. >> >> Specifically, the kernel appears to be unable to write to the >> virtio-vhost-user device's PCI registers. I've included the full panic >> output from the kernel at the end of this message. The panic is >> reproducible with two different kernels I tried (with different configs >> and versions). I tried both versions of the virtio-vhost-user I was >> able to find[1][2], and both exhibited the same behaviour. >> >> Is this a known issue? Am I doing something wrong? > > Hi, > Unfortunately I'm not sure what the issue is. This is an early > virtio-pci register access before a driver for any specific device type > (net, blk, vhost-user, etc) comes into play. > > Did you test the git trees linked below or did you rebase the commits > on top of your own QEMU tree? I tested the git trees. For your one I had to make a slight modification to delete the memfd syscall wrapper in util/memfd.c, since it conflicted with the one that is now provided by Glibc. Nikos's tree I used totally unmodified. > Is your guest kernel a stock kernel.org/distro kernel or has it been > modified (especially with security patches)? I tried a slightly modified Chromium OS kernel (5.4.23), and a stock Ubuntu 18.10 kernel (4.15.0). I think the most "normal" setup I tried was building QEMU on Fedora 32, and then attempting to boot a freshly installed Ubuntu Server 18.10 VM with -chardev socket,id=chardev0,path=vhost-user.sock,server,nowait \ -device virtio-vhost-user-pci,chardev=chardev0 (The crash was reproducible with the full QEMU command lines in the write-ups, but these seemed to be the load-bearing bits.) > If no one else knows what is wrong here then it will be necessary to > check the Intel manuals to figure out the exact meaning of > "error_code(0x000b) - reserved bit violation" and why Linux triggers it > with "PGD 3b128067 P4D 3b128067 PUD 3b129067 PMD 3b12a067 PTE > 8000002000000073". Thanks for your insight. Now I at least have a place to start if nobody else knows what's up. :)
next prev parent reply index Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-21 7:14 Alyssa Ross 2020-07-21 8:30 ` Stefan Hajnoczi 2020-07-21 16:02 ` Alyssa Ross [this message] 2020-07-23 22:27 ` Alyssa Ross 2020-07-24 10:58 ` Alyssa Ross 2020-07-24 12:32 ` Stefan Hajnoczi 2020-07-24 21:56 ` Alyssa Ross 2020-07-27 10:00 ` Stefan Hajnoczi
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=87d04osvoh.fsf@alyssa.is \ --to=hi@alyssa.is \ --cc=ndragazis@arrikto.com \ --cc=qemu-devel@nongnu.org \ --cc=stefanha@redhat.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
QEMU-Devel Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git git clone --mirror https://lore.kernel.org/qemu-devel/2 qemu-devel/git/2.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \ qemu-devel@nongnu.org public-inbox-index qemu-devel Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git