When is SysBusDevice's num_mmios determined? and does SYS_BUS_DEVICE macro allocate memory?

2021-06-04 Thread ckim
Hello, experts and users, I thought I need to understand the basic qemu object model. This is from the ethernet controller hw/net/smc91c111.c (version 5.1.0). void smc91c111_init(NICInfo *nd, uint32_t base, qemu_irq irq) { DeviceState *dev; SysBusDevice *s; qemu_check_n

Re: When is SysBusDevice's num_mmios determined? and does SYS_BUS_DEVICE macro allocate memory?

2021-06-04 Thread Peter Maydell
On Fri, 4 Jun 2021 at 09:47, wrote: > The sysbus_mmio_map function checks if the given mmio range number (here 0) > is between 0 and num_mmios of the SyBusDevice. > > But when is the num_mmios value inside the struct SysBusDevice determined? I > couldn’t follow it up. num_mmios starts at zero,

Re: Switching to the GitLab bug tracker

2021-06-04 Thread Philippe Mathieu-Daudé
Hi Michael, On 5/5/21 11:58 AM, Daniel P. Berrangé wrote: > On Wed, May 05, 2021 at 11:55:30AM +0200, Stefano Garzarella wrote: >> On Tue, May 04, 2021 at 12:20:03PM +0200, Philippe Mathieu-Daudé wrote: >>> On 5/4/21 10:43 AM, Stefan Hajnoczi wrote: On Mon, May 03, 2021 at 01:16:51PM +0200, T

Re: How enable multiple MSI interrupt in PCI driver

2021-06-04 Thread Bilal, Muhammad
ping! Thanks, -Bilal From: Qemu-discuss on behalf of Bilal, Muhammad Sent: Monday, May 31, 2021 10:43 AM To: QEMU Subject: How enable multiple MSI interrupt in PCI driver Hi, I want to enable 2 MSI interrupt in my pci driver for x86_64 machine model. I

Migration from SmartOS-KVM to XCP-NG VM with 'qemu-img'

2021-06-04 Thread fluffy-bunny
Hi there! Currently I try to migrate our SmartOS-KVMs to XCP-NG with this command: 'qemu-img convert -f raw -O vpc /dev/zvol/rdsk/zones/-disk0 /usbkey/.vhd' But when I try to repair my VHD-File (as it's discribed here: https://xcp-ng.org/docs/migratetoxcpng.html#from-kvm-libvirt ) with 'vhd-util