qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/8] Fix incorrect initialization of PCI BARs.


From: Richard Henderson
Subject: Re: [PATCH 5/8] Fix incorrect initialization of PCI BARs.
Date: Sat, 5 Jun 2021 17:41:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 6/2/21 8:53 PM, Jason Thorpe wrote:
-         if ((val & PCI_BASE_ADDRESS_MEM_TYPE_MASK)
+         if ((old & PCI_BASE_ADDRESS_SPACE_IO) == 0 &&

The correct test is

  (old & PCI_BASE_ADDRESS_SPACE) == PCI_BASE_ADDRESS_SPACE_MEMORY

Bitwise it's the same thing. I'll fix it up while applying.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]