qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] VMport patch
@ 2008-01-20 18:47 Filip Navara
  2008-01-20 21:40 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Filip Navara @ 2008-01-20 18:47 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 384 bytes --]

Hello,

the current version of QEMU emulates the VMware backdoor I/O port and it
works quite well. Unfortunately it doesn't emulate the VMware behavior of
ignoring the I/O permissions when accessing this special port. The attached
patch corrects it. It's important to ignore the permissions, so that user
mode VMware tools can communicate to the backdoor.

Best regards,
Filip Navara

[-- Attachment #1.2: Type: text/html, Size: 412 bytes --]

[-- Attachment #2: vmport.patch --]
[-- Type: application/octet-stream, Size: 484 bytes --]

--- target-i386/helper.c	26 Jun 2007 08:35:18 -0000	1.84
+++ target-i386/helper.c	20 Jan 2008 18:33:33 -0000
@@ -486,7 +486,9 @@
 static inline void check_io(int addr, int size)
 {
     int io_offset, val, mask;
-    
+    /* VMware backdoor I/O port ignores priviledge control */
+    if (addr == 0x5658)
+        return;   
     /* TSS must be a valid 32 bit one */
     if (!(env->tr.flags & DESC_P_MASK) ||
         ((env->tr.flags >> DESC_TYPE_SHIFT) & 0xf) != 9 ||

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] VMport patch
  2008-01-20 18:47 [Qemu-devel] VMport patch Filip Navara
@ 2008-01-20 21:40 ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2008-01-20 21:40 UTC (permalink / raw)
  To: qemu-devel

Filip Navara wrote:
> Hello,
>
> the current version of QEMU emulates the VMware backdoor I/O port and 
> it works quite well. Unfortunately it doesn't emulate the VMware 
> behavior of ignoring the I/O permissions when accessing this special 
> port. The attached patch corrects it. It's important to ignore the 
> permissions, so that user mode VMware tools can communicate to the 
> backdoor. =

I really dislike that VMware relies on this.  It's very hard to 
implement in kqemu or KVM.  I think it would be better to modify 
open-vm-tools than to modify QEMU.

Regards,

Anthony Liguori

> Best regards,
> Filip Navara

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-20 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-20 18:47 [Qemu-devel] VMport patch Filip Navara
2008-01-20 21:40 ` 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).