Re: [kvm-unit-tests PATCH v2 4/4] pci: pci-host-generic: Use INVALID_PHYS_ADDR instead of ~0

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

 



On Mon, Jan 23, 2017 at 08:44:10AM +0100, Alexander Gordeev wrote:
> This update is better be squashed into commit b8b9fcf56253b
> ("pci: Make all ones invalid translate address")
> 
> Cc: Thomas Huth <thuth@xxxxxxxxxx>
> Cc: Andrew Jones <drjones@xxxxxxxxxx>
> Signed-off-by: Alexander Gordeev <agordeev@xxxxxxxxxx>
> ---
>  lib/pci-host-generic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>

> 
> diff --git a/lib/pci-host-generic.c b/lib/pci-host-generic.c
> index a881ec5a9d4f..4008fed153b6 100644
> --- a/lib/pci-host-generic.c
> +++ b/lib/pci-host-generic.c
> @@ -173,7 +173,7 @@ static bool pci_alloc_resource(pcidevaddr_t dev, int bar_num, u64 *addr)
>  	u64 size, pci_addr;
>  	int type, i;
>  
> -	*addr = ~0;
> +	*addr = INVALID_PHYS_ADDR;
>  
>  	if (!pci_bar_exists(dev, bar_num))
>  		return false;
> -- 
> 1.8.3.1
> 



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux