Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 859703

Summary: app-emulation/libvirt: enable support for riscv arch (WIP)
Product: Gentoo Linux Reporter: Yixun Lan <dlan>
Component: KeywordingAssignee: Virtualization Team <virtualization>
Status: CONFIRMED ---    
Severity: normal CC: michal.privoznik, riscv, tamiko, virtualization
Priority: Normal    
Version: unspecified   
Hardware: riscv   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 859625    

Description Yixun Lan archtester gentoo-dev 2022-07-21 10:52:47 UTC
open this bug for collaboration, mainly tracking for enabling support for riscv arch

Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2022-07-21 10:59:13 UTC
build app-emulation/libvirt-8.5.0 with USE="bash-completion caps libssh libvirtd nls policykit qemu udev virt-network zfs"

has following run-time warning, which show log from libvirtd:

Jul 21 18:47:39 unmatch8 systemd[1]: Starting Virtualization daemon...
Jul 21 18:47:39 unmatch8 systemd[1]: Started Virtualization daemon.
Jul 21 18:47:39 unmatch8 libvirtd[1388776]: libvirt version: 8.5.0
Jul 21 18:47:39 unmatch8 libvirtd[1388776]: hostname: unmatch8
Jul 21 18:47:39 unmatch8 libvirtd[1388776]: Host sysinfo extraction not supported on this platform: Function not implemented
Jul 21 18:47:39 unmatch8 libvirtd[1388776]: this function is not supported by the connection driver: 'riscv64' architecture is not supported by CPU driver
Comment 2 Michal Prívozník 2022-07-21 13:21:43 UTC
Yeah, upstream doesn't have much support for RISCV yet.

The first error message ("Host sysinfo ...") means that querying sysinfo won't work (virConnectGetSysinfo() API or its virsh equivalent: virsh sysinfo) AND some domain configurations won't work either (<os> <smbios mode='host'/> </os>).

The second error message ("this function is not supported ...") means that libvirt lacks functions to query various processor features.
Comment 3 Larry the Git Cow gentoo-dev 2022-07-26 06:51:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82b54e4e899ff16c9727b7701ca5f6aeee34e0f9

commit 82b54e4e899ff16c9727b7701ca5f6aeee34e0f9
Author:     Yu Gu <guyu2876@gmail.com>
AuthorDate: 2022-07-26 06:37:56 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2022-07-26 06:51:10 +0000

    profiles/arch/riscv: Mask USE=xen,rbd on app-emulation/libvirt
    
    Bug: https://bugs.gentoo.org/859703
    
    Signed-off-by: Yu Gu <guyu2876@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26598
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 profiles/arch/riscv/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)