Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
Different error info for memsave command (HMP and QMP)
Version-Release number of selected component (if applicable):
Host:
# uname -r
3.10.0-57.el7.x86_64
qemu-kvm-rhev-1.5.3-20.el7
Guest:
Rhel7
3.10.0-54.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1.Boot guest
(qemu) ? memsave
memsave addr size file -- save to disk virtual memory dump starting at 'addr' of size 'size'
2.Execute memsave use HMP and QMP
(qemu) memsave 1 333333 lang
{"execute":"memsave","arguments":{"val":1,"size":333333,"filename":"lang-1"}}
#ls -lh lang*
-rw-r--r--. 1 root root 326K Dec 9 18:41 lang
-rw-r--r--. 1 root root 326K Dec 9 18:44 lang-1
3.Execute memsave use HMP and QMP with other size
(qemu) memsave 1 3333333333333 fang
'memsave' has failed: integer is for 32-bit values--->error info
{"execute":"memsave","arguments":{"val":1,"size":3333333333333,"filename":"fang-1"}}
{"error": {"class": "GenericError", "desc": "An IO error has occurred"}}-->error info
Actual results:
After step 3,get different error info
Expected results:
If execute the same commands,should give the same error info.
Additional info:
1)Test "pmemsave" command have same problem
2)My CLI:
/usr/libexec/qemu-kvm -m 1G -smp 4,sockets=1,cores=4,thrmaxcpus=8 -device piix3-usb-uhci,id=usb -name rhel7 -device virtio-balloon-pci,id=balloon0 -spice port=5900,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 -global qxl-vga.revision=3 -device qxl,id=video1,vram_size=67108864,bus=pci.0,addr=0x5 -device qxl,id=video2,vram_size=67108864,bus=pci.0,addr=0x6 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio -netdev tap,id=hostnet0,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -device e1000,netdev=hostnet0,id=virtio-netpci0,mac=54:52:1b:36:1a:01,addr=0x8 -drive file=/root/RHEL-Server-new.raw,if=none,media=disk,format=raw,rerror=stop,werror=stop,aio=native,id=drive-virtio-disk0 -device virtio-blk-pci,scsi=off,addr=0x9,drive=drive-virtio-disk0,id=disk0,bootindex=0 -qmp tcp:0:4444,server,nowait -drive file=/root/RHEL-7.0-20131127.1-Server-x86_64-boot.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -chardev socket,id=test,path=/tmp/qmp-monitor,server,nowait -mon chardev=test,mode=control
Description of problem: Different error info for memsave command (HMP and QMP) Version-Release number of selected component (if applicable): Host: # uname -r 3.10.0-57.el7.x86_64 qemu-kvm-rhev-1.5.3-20.el7 Guest: Rhel7 3.10.0-54.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Boot guest (qemu) ? memsave memsave addr size file -- save to disk virtual memory dump starting at 'addr' of size 'size' 2.Execute memsave use HMP and QMP (qemu) memsave 1 333333 lang {"execute":"memsave","arguments":{"val":1,"size":333333,"filename":"lang-1"}} #ls -lh lang* -rw-r--r--. 1 root root 326K Dec 9 18:41 lang -rw-r--r--. 1 root root 326K Dec 9 18:44 lang-1 3.Execute memsave use HMP and QMP with other size (qemu) memsave 1 3333333333333 fang 'memsave' has failed: integer is for 32-bit values--->error info {"execute":"memsave","arguments":{"val":1,"size":3333333333333,"filename":"fang-1"}} {"error": {"class": "GenericError", "desc": "An IO error has occurred"}}-->error info Actual results: After step 3,get different error info Expected results: If execute the same commands,should give the same error info. Additional info: 1)Test "pmemsave" command have same problem 2)My CLI: /usr/libexec/qemu-kvm -m 1G -smp 4,sockets=1,cores=4,thrmaxcpus=8 -device piix3-usb-uhci,id=usb -name rhel7 -device virtio-balloon-pci,id=balloon0 -spice port=5900,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 -global qxl-vga.revision=3 -device qxl,id=video1,vram_size=67108864,bus=pci.0,addr=0x5 -device qxl,id=video2,vram_size=67108864,bus=pci.0,addr=0x6 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -monitor stdio -netdev tap,id=hostnet0,script=/etc/ovs-ifup,downscript=/etc/ovs-ifdown -device e1000,netdev=hostnet0,id=virtio-netpci0,mac=54:52:1b:36:1a:01,addr=0x8 -drive file=/root/RHEL-Server-new.raw,if=none,media=disk,format=raw,rerror=stop,werror=stop,aio=native,id=drive-virtio-disk0 -device virtio-blk-pci,scsi=off,addr=0x9,drive=drive-virtio-disk0,id=disk0,bootindex=0 -qmp tcp:0:4444,server,nowait -drive file=/root/RHEL-7.0-20131127.1-Server-x86_64-boot.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -chardev socket,id=test,path=/tmp/qmp-monitor,server,nowait -mon chardev=test,mode=control