Re: [libvirt PATCH V2 3/4] Implement the method of getting host info for loongarch

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

 



On Wed, Jan 10, 2024 at 11:07:48AM +0800, Xianglai Li wrote:
> diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c
> index 4027547e1e..c809fc0d7a 100644
> --- a/src/util/virhostcpu.c
> +++ b/src/util/virhostcpu.c
> @@ -1650,7 +1652,8 @@ virHostCPUGetPhysAddrSize(const virArch hostArch,
>  {
>      g_autoptr(FILE) cpuinfo = NULL;
>
> -    if (!(ARCH_IS_X86(hostArch) || ARCH_IS_SH4(hostArch))) {
> +    if (!(ARCH_IS_X86(hostArch) || ARCH_IS_SH4(hostArch) ||
> +        ARCH_IS_LOONGARCH(hostArch))) {
>          /* Ensure size is set to 0 as physical address size is unknown */
>          *size = 0;
>          return 0;

Alignment is slightly off here.

-- 
Andrea Bolognani / Red Hat / Virtualization
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux