]> git.proxmox.com Git - qemu.git/commit
pc: make vgabios exit port more useful
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 8 Aug 2011 19:31:37 +0000 (14:31 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 12 Aug 2011 13:27:00 +0000 (08:27 -0500)
commit4333979e3d8c129953bba36ed87ce543d33cbea1
tree397b3930ea9effa60bc0c01b3071fd0b7f938956
parent9b024b5f965a3c11aa65435df5b9e8f1cc24d3fa
pc: make vgabios exit port more useful

We've always listened on port 501 for vgabios panic messages.  In the entire
time I've worked on QEMU, I've never actually seen a vgabios panic message :-)

If we change the semantics of this port a little bit, it makes it possible to
use it for more interesting use-cases.  I chose this approach instead of adding
a new I/O port because it avoids having a guest visible change.

This change allows single-byte access to port 501 and also uses the value
written to construct an exit code.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc.c