Public bug reported:

[Test environment]
Host OS : Ubuntu19.10
Host kernel: 5.3.0-13-generic
Host QEMU: QEMU emulator version 4.0.0 (Debian 1:4.0+dfsg-0ubuntu9)
Guest OS : Ubuntu19.10
Gust kernel: 5.3.0-13-generic

[platform]
ICX-SP 2s with BPS installed.

[Reproduce Steps]

1. dd 256 img successfully
qemu-img create -f raw $XVS_DATA/var/nvdimm_disk_file/nvdimm_back_$i.img 318M
2. create 1 guest with 256 nvdimm devices
qemu-system-x86_64 -accel kvm -monitor pty -daemonize -serial 
file:/share/xvs/results/s2019-10-10-075009/memory/kvm_cr_maximum_nvdimm_64_g32e/MEMORY_CR_12_1570693837_serial_output.log
 -smp 4 -m 16G,slots=256,maxmem=96G -cpu host -netdev 
tap,br=virbr0,id=nic0,helper=/usr/lib/qemu/qemu-bridge-helper -device 
virtio-net-pci,netdev=nic0,mac=52:54:00:65:92:60 -drive 
file=/share/xvs/var/tmp-img_ubuntu19.10_kvm_CR.img_8923,if=virtio,id=virtio-disk0
 -object 
memory-backend-file,id=mem1,share,mem-path=/share/xvs/var/nvdimm_disk_file/nvdimm_back_1.img,size=318M
 -device nvdimm,memdev=mem1,id=nv1,label-size=128k -object 
memory-backend-file,id=mem2,share,mem-path=/share/xvs/var/nvdimm_disk_file/nvdimm_back_2.img,size=318M
 -device nvdimm,memdev=mem2,id=nv2,label-size=128k ...... -object 
memory-backend-file,id=mem256,share,mem-path=/share/xvs/var/nvdimm_disk_file/nvdimm_back_256.img,size=318M
 -device nvdimm,memdev=mem256,id=nv256,label-size=128k -M q35,nvdimm

Note: …….means to repeat backend with:
-object 
memory-backend-file,id=mem2,share,mem-path=/share/xvs/var/nvdimm_disk_file/nvdimm_back_2.img,size=318M
 -device nvdimm,memdev=mem2,id=nv2,label-size=128k 

3. Change the namespace mode in guest.
ndctl list found 256 namespace
.
.
  {
    "dev":"namespace166.0",
    "mode":"raw",
    "size":333316096,
    "sector_size":512,
    "blockdev":"pmem166"
  },
  {
    "dev":"namespace222.0",
    "mode":"raw",
    "size":333316096,
    "sector_size":512,
    "blockdev":"pmem222"
  },
  {
    "dev":"namespace60.0",
    "mode":"raw",
    "size":333316096,
    "sector_size":512,
    "blockdev":"pmem60"
  }
]
root@qa:~# ndctl create-namespace -f -e namespace60.0 -m dax
libndctl: ndctl_dax_enable: dax60.0: failed to enable
  Error: namespace60.0: failed to enable
failed to reconfigure namespace: No such device or address

[Expect results]
Chang namespace mode successfully without any error.

[Note]
we also tried to use one nvdimm devices as backend to start the guest, Change 
the namespace mode successful in guest.

** 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/1847578

Title:
  [KVM] [Crystal Ridge] Fail to change namespace mode in VM which have
  256 backend files

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to