Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4452

No error msg prompts when defining domain containing 2 virtio-mem devices with same address base

    • libvirt-10.0.0-4.el9
    • None
    • Moderate
    • rhel-sst-virtualization
    • ssg_virtualization
    • 17
    • 27
    • None
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • 9.10.0
    • None

      What were you trying to do that didn't work?

      There should be error msg prompt when defining domain with 2 virtio-mem devices with same address base, like dimm device or nvdimm device.

      Please provide the package NVR for which bug is seen:

      1. rpm -q libvirt
        libvirt-9.5.0-7.el9_3.x86_64

        How reproducible:

      100%

      Steps to reproduce

      1. Define domain with 2 virtio-mem devices with same address base:

      <memory model='virtio-mem'>
      <target>
      <size unit='KiB'>131072</size>
      <node>0</node>
      <block unit='KiB'>2048</block>
      <requested unit='KiB'>131072</requested>
      <address base="0x100000000"/>
      </target>
      </memory>

      <memory model='virtio-mem'>
      <target>
      <size unit='KiB'>131072</size>
      <node>0</node>
      <block unit='KiB'>2048</block>
      <requested unit='KiB'>131072</requested>
      <address base="0x100000000"/>
      </target>
      </memory>

      2. # virsh define vm1.xml
      Domain 'vm1' defined from vm1.xml

      Expected results

      There should be error msg prompt to tell user address is conflicting

      Actual results

      Domain defined successfully

       

      Additional info:

      If defining 2 dimm devices with same address base, there is error msg:

      virsh define vm1.xml
      error: Failed to define domain from vm1.xml
      error: unsupported configuration: memory device base '0x100000000' is already being used by another memory device

              mprivozn@redhat.com Michal Privoznik
              lcong@redhat.com Liang Cong
              virt-maint virt-maint
              Liang Cong Liang Cong
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: