qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Filip Navara" <xnavara@volny.cz>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] VMport patch
Date: Sun, 20 Jan 2008 19:47:25 +0100	[thread overview]
Message-ID: <5b31733c0801201047o283aad77ndaae4ea23a1525d@mail.gmail.com> (raw)


[-- 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 ||

             reply	other threads:[~2008-01-20 18:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-20 18:47 Filip Navara [this message]
2008-01-20 21:40 ` [Qemu-devel] VMport patch Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5b31733c0801201047o283aad77ndaae4ea23a1525d@mail.gmail.com \
    --to=xnavara@volny.cz \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).