[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1] kvm: drop wrong assertion creating problems
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v1] kvm: drop wrong assertion creating problems with pflash |
Date: |
Thu, 21 Sep 2017 12:34:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 21/09/2017 08:49, Gerd Hoffmann wrote:
> On Wed, 2017-09-20 at 16:50 +0200, David Hildenbrand wrote:
>> pflash toggles mr->romd_mode. So this assert does not always hold.
>>
>> 1) a device was added with !mr->romd_mode, therefore effectively not
>> creating a kvm slot as we want to trap every access (add = false).
>> 2) mr->romd_mode was toggled on before remove it. There is now
>> actually no slot to remove and the asser is wrong.
>>
>> So let's just drop the assert.
>
> Works without any obvious bad side effects.
>
> Tested-by: Gerd Hoffmann <address@hidden>
Queued, thanks.
Paolo