-
Bug
-
Resolution: Not a Bug
-
Major
-
rhel-9.5
-
None
-
Important
-
CustomerScenariosInitiative
-
rhel-sst-virtualization-windows
-
ssg_virtualization
-
19
-
21
-
None
-
QE ack
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
Automated
-
-
x86_64
-
Windows
-
None
escription of problem:
viomem device seems not work well on win10-32
Version-Release number of selected component (if applicable):
kernel-5.14.0-437.el9.x86_64
qemu-kvm-8.2.0-11.el9_4.x86_64
edk2-ovmf-20240214-2.el9.noarch
seabios-bin-1.16.3-2.el9.noarch
virtio-win-prewhql-257iso
How reproducible:
100%
Steps to Reproduce:
1. Boot a win10-32(q35) guest with a viomem device
/usr/libexec/qemu-kvm \
-name 'win10-32' \
-machine q35 \
-nodefaults \
-device virtio-vga,id=video0 \
-device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x3 \
-device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x3.0x1 \
-device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x3.0x2 \
-device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x3.0x3 \
-device pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x3.0x4 \
-device pcie-root-port,port=0x15,chassis=6,id=pci.6,bus=pcie.0,addr=0x3.0x5 \
-device pcie-root-port,port=0x16,chassis=7,id=pci.7,bus=pcie.0,addr=0x3.0x6 \
-device pcie-root-port,port=0x17,chassis=8,id=pci.8,bus=pcie.0,addr=0x3.0x7 \
-device virtio-net-pci,mac=9a:36:83:b6:3d:05,id=idJVpmsF,netdev=id23ZUK6,bus=pci.3 \
-netdev tap,id=id23ZUK6,vhost=on \
-blockdev node-name=file_stg2,driver=file,cache.direct=on,cache.no-flush=off,filename=/home/win10.qcow2,aio=threads \
-blockdev node-name=drive_stg2,driver=qcow2,cache.direct=on,cache.no-flush=off,file=file_stg2 \
-device virtio-blk-pci,id=stg2,drive=drive_stg2 \
-smp 8 \
-cpu 'Icelake-Server-noTSX',hv_stimer,hv_synic,hv_vpindex,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_frequencies,hv_runtime,hv_tlbflush,hv_reenlightenment,hv_stimer_direct,hv_ipi,hv-xmm-input,hv_tlbflush_ext,+kvm_pv_unhalt,lm=off,pae=on \
-drive id=drive_cd1,if=none,snapshot=off,aio=threads,cache=none,media=cdrom,file=/home/kvm_autotest_root/iso/ISO/Win10/en-us_windows_10_business_editions_version_22h2_x86_dvd_186a68c3_official_updates_20240506_83.iso \
-device ide-cd,id=cd2,drive=drive_cd1,bus=ide.0,unit=0 \
-cdrom /home/kvm_autotest_root/iso/windows/virtio-win-1.9.40-0.el9_4.iso \
-device piix3-usb-uhci,id=usb -device usb-tablet,id=input0 \
-vnc :10 \
-rtc base=localtime,clock=host,driftfix=slew \
-boot order=cdn,once=c,menu=off,strict=off \
-enable-kvm \
-qmp tcp:0:1231,server,nowait \
-monitor stdio \
-m 8G,maxmem=20G \
-device virtio-serial-pci,id=virtio-serial1,max_ports=31,bus=pci.4 \
-chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,bus=virtio-serial1.0,chardev=channel2,name=org.qemu.guest_agent.0,id=port2 \
-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0,bus=pci.5 \
-device virtio-balloon-pci,id=balloon0,bus=pci.6 \
-device pvpanic,id=pvpanic0,ioport=0x0505 \
-device vmcoreinfo \
-object memory-backend-ram,id=vmem0,size=8G \
-device virtio-mem-pci,id=vm0,memdev=vmem0,node=0,requested-size=5G \
2. grow virtio-mem device to 6G or shrink virtio-mem device to 1G
HMP
(qemu) qom-set vm0 requested-size 6G
Actual results:
Memory size does not change.
Expected results:
Memory size can change accordingly.