Skip to content

--disable-microvm + virtiofsd + hotpluggable memory == BOOM #334

@marcosps

Description

@marcosps

I was about to check something related to memory hotplug, and by it I changed virtme-ng a little:

  1199⋮    │        qemuargs.extend(["-m", args.memory])
      ⋮1199│        qemuargs.extend(["-m", f"{args.memory},slots=4,maxmem=4G"])

And executed vng:

vng --disable-microvm --user root -m 1G --verbose

Once he VM booted, I entered in the QEMU monitor mode (Ctrl-C), and executed the following commands:

object_add memory-backend-ram,id=mem1,size=1G
device_add pc-dimm,id=dimm1,memdev=mem1

This immediately triggered the following error:

thread 'vring_worker' panicked at /home/abuild/rpmbuild/BUILD/virtiofsd-1.13.2-build/virtiofsd-1.13.2/src/vhost_user.rs:271:18:
called `Result::unwrap()` on an `Err` value: QueueWriter(FindMemoryRegion)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The issue is gone if I use force-9p. Have you seem something similar to it? I'll try to contact someone at SUSE to check if this is expected or not. I opened this bug, because someone may face the same problem, and I just wanted to advice to use --force-9p in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions