parport passthrough error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Fedora) |
Fix Released
|
Medium
|
|||
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=======
1. Impact: parallel ports cannot be passed through to guests
2. Development fix: if the path being passed in starts with '/dev/parport'
then tell qemu that it is a parport, not a tty.
3. Stable fix: cherrypick of the upstream fix
4. Test case: see below
5. Regression potential: this patch has been upstream for quite some time now
so there should be no regression.
=======
Package: libvirt-bin
Release: 12.04
Version: 0.9.8-2ubuntu17.10
Configure virtual machine to passtrought /dev/parport0
Expect: /dev/parport0 available in guest
Happened: parport is unavailable in guest
Reason: wrong qemu launch string
have:
/usr/bin/kvm -S -M pc-1.0 -cpu qemu32 -enable-kvm -m 128 -smp 1,sockets=
... skipped ...
-chardev tty,id=
... skipped ...
shoud be:
/usr/bin/kvm -S -M pc-1.0 -cpu qemu32 -enable-kvm -m 128 -smp 1,sockets=
... skipped ...
-chardev parport,
... skipped ...
Fix in attachment
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in libvirt (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Description of problem:
Pass the /dev/parport0 to guest does not work with qemu-kvm
Version-Release number of selected component (if applicable):
libvirt 0.9.4
How reproducible:
always
Steps to Reproduce: dev/parport0' />
1. Configure /dev/parport0
<parallel type='dev'>
<source path='/
<target port='0'/>
</parallel>
2. Start guest and try to use the parallel port.
Actual results:
Not working
Expected results:
Working
Additional info:
The commandline produced by libvirt looks like this:
-chardev tty,id= charparallel0, path=/dev/ parport0 chardev= charparallel0, id=parallel0
-device isa-parallel,
The first parameter is "tty". Should not it be "parport"?
If I start the qemu in the commandline with tty replaced with parport it is working as expected.
I will try to provide a patch that fix this issue.
There was also a post in the libvirt-users mailinglist from an other users a couple of months ago: /www.redhat. com/archives/ libvirt- users/2011- September/ msg00095. html
https:/