From: Avi Kivity <avi@redhat.com>
To: Nolan <nolan@sigbus.net>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [PATCH 2/2] Make sure to enable dirty log tracking for VMware VGA
Date: Tue, 09 Jun 2009 06:37:16 +0300 [thread overview]
Message-ID: <4A2DD8EC.1070503@redhat.com> (raw)
In-Reply-To: <loom.20090609T011827-203@post.gmane.org>
(redirecting)
Nolan wrote:
> Anthony Liguori <aliguori <at> us.ibm.com> writes:
>
>>
>> This is needed for VMware VGA to work properly under KVM.
>>
>> Signed-off-by: Anthony Liguori <aliguori <at> us.ibm.com>
>> ---
>> hw/vmware_vga.c | 4 ++++
>> 1 files changed, 4 insertions(+), 0 deletions(-)
>>
>> diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
>> index bb17698..246011b 100644
>> --- a/hw/vmware_vga.c
>> +++ b/hw/vmware_vga.c
>> @@ -1203,6 +1203,10 @@ static void pci_vmsvga_map_mem(PCIDevice *pci_dev, int
>>
> region_num,
>
>> #endif
>> cpu_register_physical_memory(s->vram_base, s->vga.vram_size,
>> iomemtype);
>> +
>> + s->vga.map_addr = addr;
>> + s->vga.map_end = addr + s->vga.vram_size;
>> + vga_dirty_log_start(&s->vga);
>> }
>>
>> void pci_vmsvga_init(PCIBus *bus)
>>
>
> Using the MMU to track writes to VRAM should only be needed when the FIFO is
> disabled. When the FIFO is enabled (SVGA_REG_CONFIG_DONE = 1), the guest will
> notify the host via the FIFO when it has written to a region of VRAM directly,
> using the SVGA_CMD_UPDATE FIFO command.
>
> Unless I'm confused, this change appears to use the MMU to track VRAM updates
> unconditionally.
>
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
prev parent reply other threads:[~2009-06-09 3:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 21:48 [Qemu-devel] [PATCH 1/2] Make sure to enable dirty tracking of VBE vram mapping Anthony Liguori
2009-06-08 21:48 ` [Qemu-devel] [PATCH 2/2] Make sure to enable dirty log tracking for VMware VGA Anthony Liguori
2009-06-08 21:53 ` [Qemu-devel] " Anthony Liguori
2009-07-29 16:23 ` Jordan Justen
2009-07-29 17:15 ` Anthony Liguori
2009-07-29 17:56 ` Jordan Justen
2009-07-29 18:47 ` Anthony Liguori
[not found] ` <loom.20090609T011827-203@post.gmane.org>
2009-06-09 3:37 ` Avi Kivity [this message]
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=4A2DD8EC.1070503@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=nolan@sigbus.net \
--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).