[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RfC PATCH 0/4] make display updates thread safe.
From: |
Mark Cave-Ayland |
Subject: |
Re: [Qemu-devel] [RfC PATCH 0/4] make display updates thread safe. |
Date: |
Tue, 4 Apr 2017 08:25:03 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 |
On 04/04/17 07:12, Gerd Hoffmann wrote:
> Hi,
>
>> - unsigned long align = 1 << (TARGET_PAGE_BITS + BITS_PER_LEVEL);
>> + unsigned long align = 1UL << (TARGET_PAGE_BITS + BITS_PER_LEVEL);
>
>> There were 2 issues here: without the UL suffix on align I was getting
>> incorrect first/last addresses since the high bits of align weren't
>> being cleared,
>
> Ah, thanks, I'll add that.
>
>> and then offset appeared to be shifted twice.
>
> Yep, noticed that too meanwhile, fixed in the branch pushed half an hour
> ago. I've dropped the other shift though ;)
Confirmed!
The only minor nit I've noticed is that commit 322aef7 "cg3: fix up size
parameter for memory_region_get_dirty()" isn't quite right now that the
asserts() in cpu_physical_memory_snapshot_get_dirty() have now been
fixed - the size should now be "width" rather than "width - 1".
Other than that, I've just given it a quick spin across my SPARC CG3/TCX
and PPC VGA images and it looks good here :)
ATB,
Mark.