• Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.0
    • None
    • virtio-win
    • None
    • Productize virtio-mem driver
    • Hide

      The following needs to be verified in order for this epic to be considered complete:

      • Verify X
      • Verify Y
      • Verify Z
      Show
      The following needs to be verified in order for this epic to be considered complete: Verify X Verify Y Verify Z
    • rhel-sst-virtualization-windows
    • ssg_virtualization
    • False
    • Hide

      None

      Show
      None

      Example usage (virtio-mem-pci is introduced in follow-up patches):
      
      Start QEMU with two virtio-mem devices (one per NUMA node):
       $ qemu-system-x86_64 -m 4G,maxmem=20G \
        -smp sockets=2,cores=2 \
        -numa node,nodeid=0,cpus=0-1 -numa node,nodeid=1,cpus=2-3 \
        [...]
        -object memory-backend-ram,id=mem0,size=8G \
        -device virtio-mem-pci,id=vm0,memdev=mem0,node=0,requested-size=0M \
        -object memory-backend-ram,id=mem1,size=8G \
        -device virtio-mem-pci,id=vm1,memdev=mem1,node=1,requested-size=1G
      
      Query the configuration:
       (qemu) info memory-devices
       Memory device [virtio-mem]: "vm0"
         memaddr: 0x140000000
         node: 0
         requested-size: 0
         size: 0
         max-size: 8589934592
         block-size: 2097152
         memdev: /objects/mem0
       Memory device [virtio-mem]: "vm1"
         memaddr: 0x340000000
         node: 1
         requested-size: 1073741824
         size: 1073741824
         max-size: 8589934592
         block-size: 2097152
         memdev: /objects/mem1
      
      Add some memory to node 0:
       (qemu) qom-set vm0 requested-size 500M
      
      Remove some memory from node 1:
       (qemu) qom-set vm1 requested-size 200M
      
      Query the configuration again:
       (qemu) info memory-devices
       Memory device [virtio-mem]: "vm0"
         memaddr: 0x140000000
         node: 0
         requested-size: 524288000
         size: 524288000
         max-size: 8589934592
         block-size: 2097152
         memdev: /objects/mem0
       Memory device [virtio-mem]: "vm1"
         memaddr: 0x340000000
         node: 1
         requested-size: 209715200
         size: 209715200
         max-size: 8589934592
         block-size: 2097152
         memdev: /objects/mem1 

              mkedzier1 Marek Kedzierski
              kkostiuk Konstantin Kostiuk
              virt-maint virt-maint
              Menghuan Li Menghuan Li
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: