Public bug reported:

qemu-system-riscv64 1:9.0.2+ds-4ubuntu8 returns incorrect information to
virConnectGetDomainCapabilities:

<domainCapabilities>
  <path>/usr/bin/qemu-system-riscv64</path>
  <domain>qemu</domain>
  <machine>virt</machine>
  <arch>riscv64</arch>
  <vcpu max='512'/>
  <iothreads supported='yes'/>
  <os supported='yes'>
    <enum name='firmware'/>
    <loader supported='yes'>
      <value>/usr/share/AAVMF/AAVMF_CODE.fd</value>
      <value>/usr/share/AAVMF/AAVMF32_CODE.fd</value>
      <enum name='type'>
        <value>rom</value>
        <value>pflash</value>
      </enum>
      <enum name='readonly'>
        <value>yes</value>
        <value>no</value>
      </enum>
      <enum name='secure'>
        <value>no</value>
      </enum>
    </loader>

/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd and RISCV_VIRT_VARS.fd
are expected.

This is the test program:

#include <stdio.h>
#include <stdlib.h>
#include <libvirt/libvirt.h>

int main() {
        virConnectPtr conn;
        char *capabilities;

        // Connect to the hypervisor
        conn = virConnectOpen("qemu:///system");
        if (conn == NULL) {
                fprintf(stderr, "Failed to open connection to 
qemu:///system\n");
                return 1;
        }

        // Get domain capabilities
        capabilities = virConnectGetDomainCapabilities(
                conn,
                NULL,
                "riscv64",
                NULL,
                NULL,
                0);
        if (capabilities == NULL) {
                fprintf(stderr, "Failed to get domain capabilities\n");
                virConnectClose(conn);
                return 1;
        }

        // Print the capabilities (XML format)
        printf("Domain Capabilities:\n%s\n", capabilities);

        // Free the capabilities string
        free(capabilities);

        // Close the connection
        virConnectClose(conn);
        return 0;
}

** Affects: qemu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2091573

Title:
  qemu-system-riscv64 1:9.0.2+ds-4ubuntu8 returns incorrect EDK II
  binary location

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2091573/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to