Bug 1456882
Summary: | qemu-kvm-rhev: Can't control pl011 serial console instantiation | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Andrea Bolognani <abologna> |
Component: | qemu-kvm-rhev | Assignee: | Andrew Jones <drjones> |
Status: | CLOSED NOTABUG | QA Contact: | Sitong Liu <siliu> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.3 | CC: | chayang, drjones, hhuang, jcm, juzhang, michen, rbalakri, virt-bugs, virt-maint, xfu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | aarch64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1435681 | Environment: | |
Last Closed: | 2017-09-04 11:40:51 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1173755, 1435681 |
Description
Andrea Bolognani
2017-05-30 15:28:10 UTC
Bumping to 7.5. There's a workaround that can be used for now, which is to use virtio-console. I guess this should already work by adding the following to the QEMU command line. Is that sufficient? -add-fd set=0,fd=$FD_ID \ -chardev stdio,id=chardev0,logfile=/dev/fdset/0,logappend=on \ -serial chardev:chardev0 $FD_ID>>my_logfile Replacing stdio with pty should also work. (In reply to Andrew Jones from comment #4) > I guess this should already work by adding the following to the QEMU command > line. Is that sufficient? > > -add-fd set=0,fd=$FD_ID \ > -chardev stdio,id=chardev0,logfile=/dev/fdset/0,logappend=on \ > -serial chardev:chardev0 $FD_ID>>my_logfile > > Replacing stdio with pty should also work. Currently we generate -add-fd set=0,fd=$FD_ID \ -chardev pty,id=charserial0,logfile=/dev/fdset/0,logappend=on \ -device isa-serial,chardev=charserial0,id=serial0 eg. we use -device to create the device explicitly. Of course that doesn't work because isa-serial can't be used on aarch64, but s/isa-serial/virtconsole/ for example does. Will -serial chardev:chardev0 control the implicity pl011 instead? If that's the case, we might have a winner. I'll give it a go tomorrow. (In reply to Andrea Bolognani from comment #5) > (In reply to Andrew Jones from comment #4) > > I guess this should already work by adding the following to the QEMU command > > line. Is that sufficient? > > > > -add-fd set=0,fd=$FD_ID \ > > -chardev stdio,id=chardev0,logfile=/dev/fdset/0,logappend=on \ > > -serial chardev:chardev0 $FD_ID>>my_logfile > > > > Replacing stdio with pty should also work. > > Currently we generate > > -add-fd set=0,fd=$FD_ID \ > -chardev pty,id=charserial0,logfile=/dev/fdset/0,logappend=on \ > -device isa-serial,chardev=charserial0,id=serial0 > > eg. we use -device to create the device explicitly. Of > course that doesn't work because isa-serial can't be used > on aarch64, Right, it would need to be '-device pl011', which won't work, because that device isn't user creatable. > but s/isa-serial/virtconsole/ for example does. But virtconsole won't be available to the guest for early output. > > Will > > -serial chardev:chardev0 > > control the implicity pl011 instead? If that's the case, > we might have a winner. Nope, one pl011 will be created automatically just like always, i.e. still not user controllable. However, if the problem is enabling the logfile feature for that single, automatic serial console, then I think we just need do apply the chardev magic above. Since Bug 1435681 has been addressed, I think we can safely close this one now. |