Red Hat Bugzilla – Bug 1013676
9p filesystem support broken with 3.11 kernel
Last modified: 2013-10-14 13:08:31 EDT
Description of problem:
The 3.11 kernel which has now hit f19 stable updates switched to using the 9p2000.L protocol version.
Unfortunately the QEMU 1.4.x series is fubar with this version, reporting ENOTTY for most operations.
We need the following patch from QEMU git applied to Fedora QEMU builds to make it work with new kernels.
From db431f6adc881a0758512cd765b3108209013512 Mon Sep 17 00:00:00 2001
From: Gabriel de Perthuis <firstname.lastname@example.org>
Date: Fri, 10 May 2013 19:53:28 +0200
Subject: [PATCH] hw/9pfs: Be robust against paths without FS_IOC_GETVERSION
9P optionally uses the FS_IOC_GETVERSION ioctl to get information about
a file's version (sometimes called generation number).
The code checks for supported filesystems at mount time, but some paths
may come from other mounted filesystems.
Change it to treat unsupported paths the same as unsupported
filesystems, returning 0 in both cases.
Note: ENOTTY is the error code for an unsupported ioctl.
This fix allows booting a linux kernel with the same / filesystem as the
host; otherwise the boot fails when mounting devtmpfs.
Signed-off-by: Gabriel de Perthuis <email@example.com>
Reviewed-by: Aneesh Kumar K.V <firstname.lastname@example.org>
Signed-off-by: Aneesh Kumar K.V <email@example.com>
hw/9pfs/cofile.c | 4 ++++
1 file changed, 4 insertions(+)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. virt-sandbox -c qemu:///session /bin/sh
Fails if host is running a 3.11 kernel, works with a 3.10 kernel
Passes with all kernels
We need a second patch to QEMU to fix another flaw triggered in 3.11 kenrels
qemu-1.4.2-12.fc19 has been submitted as an update for Fedora 19.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qemu-1.4.2-12.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
qemu-1.4.2-12.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.