[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [Qemu-trivial] [PATCH] qxl: Fix QXLRam initialisation.
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-stable] [Qemu-trivial] [PATCH] qxl: Fix QXLRam initialisation. |
Date: |
Tue, 18 Jun 2013 07:37:30 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130513 Thunderbird/17.0.6 |
Hi,
>> If memory is set to 0xc2c2.., it leads to a spice-critical error when
>> trying to start qxl.
> But maybe instead of doing it this way, we should just memset the
> whole thing to 0, to avoid similar bugs in the future? Are there
> any arches out there which have cpu_to_le32(0) != 0 ?
On qemu + kvm guest memory (including pci device memory where this lives
in) _is_ zero initialized.
IIRC xen has a debug mode where it fills memory with non-zero values
instead, for debugging / testing purposes, and this is where things blow up.
So while the fix is clearly correct, the patch isn't as critical as it
initially looks like.
Reviewed-by: Gerd Hoffmann <address@hidden>
cheers,
Gerd