* [Qemu-devel] [4957] vmware backdoor interface fix (Chris Lalancette)
@ 2008-07-28 18:58 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-07-28 18:58 UTC (permalink / raw)
To: qemu-devel
Revision: 4957
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4957
Author: aliguori
Date: 2008-07-28 18:58:02 +0000 (Mon, 28 Jul 2008)
Log Message:
-----------
vmware backdoor interface fix (Chris Lalancette)
VMWare backdoor interface should work with IN/OUT port ops, but
currently only IN is supported. BOCHS bios uses OUT to query UUID.
The patch adds OUT support.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
trunk/hw/vmport.c
Modified: trunk/hw/vmport.c
===================================================================
--- trunk/hw/vmport.c 2008-07-28 18:55:32 UTC (rev 4956)
+++ trunk/hw/vmport.c 2008-07-28 18:58:02 UTC (rev 4957)
@@ -72,6 +72,13 @@
return s->func[command](s->opaque[command], addr);
}
+static void vmport_ioport_write(void *opaque, uint32_t addr, uint32_t val)
+{
+ CPUState *env = cpu_single_env;
+
+ env->regs[R_EAX] = vmport_ioport_read(opaque, addr);
+}
+
static uint32_t vmport_cmd_get_version(void *opaque, uint32_t addr)
{
CPUState *env = cpu_single_env;
@@ -89,6 +96,7 @@
void vmport_init(void)
{
register_ioport_read(0x5658, 1, 4, vmport_ioport_read, &port_state);
+ register_ioport_write(0x5658, 1, 4, vmport_ioport_write, &port_state);
/* Register some generic port commands */
vmport_register(VMPORT_CMD_GETVERSION, vmport_cmd_get_version, NULL);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-28 18:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28 18:58 [Qemu-devel] [4957] vmware backdoor interface fix (Chris Lalancette) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).