Bug 1039527 - Different error info for memsave/pmemsave command (HMP and QMP)
Summary: Different error info for memsave/pmemsave command (HMP and QMP)
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Ademar Reis
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-09 11:01 UTC by langfang
Modified: 2013-12-12 14:28 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-12 14:28:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description langfang 2013-12-09 11:01:25 UTC
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

Comment 2 Ademar Reis 2013-12-12 14:28:02 UTC
We won't support HMP in RHEL7 (and QMP will be supported only when used via libvirt). So closing it as WONTFIX.


Note You need to log in before you can comment on or make changes to this bug.