[Qemu-devel] How to extract task excution infomation from qemu

2016-04-01 Thread Sam
We have been trying to build a multicore NoC emulator, which can runs a full system. We plan to run the full system in qemu and get information from traces to feed noxim,which is a NoC emulator. Noxim needs to read a taskList to start emulating. Each task include the following data fields: #Exe

Re: [Qemu-devel] [PATCH v2 0/3] qemu-img: rebase: Improve/optimize rebase operation

2019-05-02 Thread Sam
I see, Thanks > On 2 May 2019, at 17:21, Eric Blake wrote: > > On 5/2/19 8:58 AM, Sam Eiderman wrote: >> This patch series aims to improve the speed of qemu-img rebase. >> >> 1. Mainly by removing unnecessary reads when rebasing on the same >> chain. >&g

Re: [Qemu-devel] [PATCH v2] vmdk: Set vmdk parent backing_format to vmdk

2019-05-04 Thread Sam
mit my fix (which is very similar to what Max did) without the original change? Sam > On 3 May 2019, at 17:32, Max Reitz wrote: > > On 03.05.19 13:34, Thomas Huth wrote: >> Hi Sam, >> >> On 02/05/2019 15.08, Sam Eiderman wrote: >>> Commit b69864e ("v

Re: [Qemu-devel] [PATCH 0/2]: vmdk: Add read-only support for the new seSparse format

2019-05-12 Thread Sam
Gentle ping on "[PATCH 2/2] vmdk: Add read-only support for seSparse snapshots”. Yuchenlin reviewed "[PATCH 1/2] vmdk: Fix comment regarding max l1_size coverage”. Thanks, Sam > On 24 Apr 2019, at 10:48, Sam Eiderman wrote: > > VMware introduced a new snapshot format

[Qemu-devel] how qemu waste such long time?

2017-06-14 Thread Sam
Hi all, I'm running `QEMU_CMD ...` to create a vm. And I enable all events. For qemu and ovs-dpdk(ovs-2.4.9 with dpdk-2.2.0) environment, when I add '-chardev socket,id=char-n-ddc979cd,path=/usr/local/var/run/openvswitch/n-ddc979cd,server' option, I got a very long time to start vm, detail log is

[Qemu-devel] Fwd: [DPDK-memory] how qemu waste such long time under dpdk huge page envriment?

2017-06-19 Thread Sam
Hi all, I'm running `QEMU_CMD ...` to create a vm under dpdk huge page envriment (which set huge page 1G). And I enable all events in qemu. For qemu and ovs-dpdk(ovs-2.4.9 with dpdk-2.2.0) environment, detail log is: > 30012@1497443246.678304:object_dynamic_cast_assert qemu:memory-region->qemu:m

Re: [Qemu-devel] Fwd: [DPDK-memory] how qemu waste such long time under dpdk huge page envriment?

2017-06-19 Thread Sam
that's the question I can't figure out. And qemu long time start up only happened in huge page enviroment, I don't know why. 2017-06-19 17:45 GMT+08:00 Daniel P. Berrange : > On Mon, Jun 19, 2017 at 05:30:59PM +0800, Sam wrote: > > Hi all, > > > > I

[Qemu-devel] Will huge page have negative effect on guest vm in qemu enviroment?

2017-06-20 Thread Sam
Hi all, We plan to use DPDK on HP host machine with several core and big memory. We plan to use qemu-kvm enviroment. The host will carry 4 or more guest vm and 1 ovs. Ovs-dpdk is much faster then normal ovs, but to use ovs-dpdk, we have to enable huge page globally. My question is, will huge pag

Re: [Qemu-devel] Will huge page have negative effect on guest vm in qemu enviroment?

2017-06-20 Thread Sam
BTW, we also think about use ovs-dpdk in docker enviroment, but test result said it's not good idea, we don't know why. 2017-06-21 11:32 GMT+08:00 Sam : > Hi all, > > We plan to use DPDK on HP host machine with several core and big memory. > We plan to use qemu-kvm env

Re: [Qemu-devel] [dpdk-dev] Will huge page have negative effect on guest vm in qemu enviroment?

2017-06-21 Thread Sam
For qemu, I don't know why, as there is no log to report this. 2017-06-21 14:15 GMT+08:00 Pavel Shirshov : > Hi Sam, > > Below I'm saying about KVM. I don't have experience with vbox and others. > 1. I'd suggest don't use dpdk inside of VM if you want to see best

[Qemu-devel] Is there more trace-events in vhost module?

2017-06-12 Thread Sam
hi all, I'm debuging ovs-2.6.0, dpdk-2.2.0 and qemu-2.6.0. And I run such command: QEMU_CMD -D qemu-log.log -trace events=qemu-events ... I want to trace vhost-user protocol process between QEMU and ovs-dpdk. Ovs-dpdk's log shows lots of infomations of vhost-user protocol, but QEMU's log shows o

[Qemu-devel] How to stop `qemu-system-x86_64 ...` instead of `kill -9`?

2017-07-12 Thread Sam
hi all, I'm running `qemu-system-x86_64 ...` to start a guest vm. Now I want to stop and destroy this vm, I found there is no `qemu-stop` related command, so I have to `kill -9` this process. How could I stop `qemu-system-x86_64` instead of `kill -9`? Use `virsh` command or something? Thank you~

[Qemu-devel] Why I got "timeout" while using qga socket to connect VM?

2017-08-22 Thread Sam
Hi all, I start VM using command like this: -chardev socket,path=/home/gangyewei-3/kvm/qga.sock,server,nowait,id=qga0 > -device virtio-serial -device > virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 But When I use socat to send command ( https://wiki.qemu.org/Features/GuestAgent), it b

Re: [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?

2017-08-22 Thread Sam
rdev > socket,path=/home/gangyewei-3/kvm/qga.sock,server,nowait,id=qga0 -device > virtio-serial -device > virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -incoming tcp:0:4444 2017-08-22 17:54 GMT+08:00 Sam : > Hi all, > > I start VM using command like this: > > -chardev s

Re: [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?

2017-08-22 Thread Sam
=on -numa > node,memdev=mem -mem-prealloc -chardev socket,path=/home/gangyewei-3/ > kvm/qga.sock,server,nowait,id=qga0 -device virtio-serial -device > virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -incoming > tcp:0: 2017-08-22 18:00 GMT+08:00 Sam : > whole command is :

[Qemu-devel] [QGA] Bug of qga?

2017-08-24 Thread Sam
Hi all, I'm using qga to send `route -n` and `ping` command to guest. But I found SOMETIMES, the second `ping` command's result is the same as `route -n` command. So I guess is there some cache mechanism of qga command result? So when I send the second command, and receive from qga socket, I rece

Re: [Qemu-devel] [QGA] Bug of qga?

2017-08-24 Thread Sam
10:11 GMT+08:00 Sam : > Hi all, > > I'm using qga to send `route -n` and `ping` command to guest. But I found > SOMETIMES, the second `ping` command's result is the same as `route -n` > command. > > So I guess is there some cache mechanism of qga command result? So w

[Qemu-devel] Why got no response of vnc?

2017-08-24 Thread Sam
Hi all, I'm starting vm using: kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2 -cdrom > CentOS-7-x86_64-DVD-1503-01.iso -boot d > VNC server running on '127.0.0.1:5900' then I start vnc client in another PC to connect 10.253.23.24:11800 and 10.253.23.24:5900, I got time out,

Re: [Qemu-devel] Why got no response of vnc?

2017-08-24 Thread Sam
I follow this: https://en.wikibooks.org/wiki/QEMU/QEMU_Hello_World:_Installing_QEMU_and_getting_it_up_and_running 2017-08-25 14:31 GMT+08:00 Sam : > Hi all, > > I'm starting vm using: > > kvm]$ sudo /usr/local/bin/qemu-system-x86_64 -m 256 -hda test.qcow2 >> -cdrom C

Re: [Qemu-devel] Why got no response of vnc?

2017-08-25 Thread Sam
Actually, I just want to install OS and use it, but I found I can't go into guest OS (as vnc time out), so what should I do? 2017-08-25 14:45 GMT+08:00 Sam : > I follow this: > https://en.wikibooks.org/wiki/QEMU/QEMU_Hello_World:_ > Installing_QEMU_and_getting_it_up_and_running >

Re: [Qemu-devel] Why got no response of vnc?

2017-08-25 Thread Sam
I use ssh to the host PC, so I think I could not use two screen. 2017-08-25 15:38 GMT+08:00 Sam : > Actually, I just want to install OS and use it, but I found I can't go > into guest OS (as vnc time out), so what should I do? > > 2017-08-25 14:45 GMT+08:00 Sam : > >&g

Re: [Qemu-devel] Why got no response of vnc?

2017-08-25 Thread Sam
,nowait,id=qga0 \ -device virtio-serial \ -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \ -incoming tcp:0:80818 2017-08-25 16:21 GMT+08:00 Thomas Huth : > On 25.08.2017 08:31, Sam wrote: > > Hi all, > > > > I'm starting vm using: > > > >

Re: [Qemu-devel] [QGA] Bug of qga?

2017-08-28 Thread Sam
I could repeat this several times, I think it's mis-order of qmp in qga socket. 2017-08-25 11:09 GMT+08:00 Sam : > Also I found: > > when I use `socat` to take a qga socket, then I use `socat` to communicate > it will got error. > But also SOMETIMES, I will not got error and

Re: [Qemu-devel] [QGA] Bug of qga?

2017-08-28 Thread Sam
So how to fix this bug? And where should I to report bug? 2017-08-29 13:52 GMT+08:00 Sam : > I could repeat this several times, I think it's mis-order of qmp in qga > socket. > > 2017-08-25 11:09 GMT+08:00 Sam : > >> Also I found: >> >> when I use `socat` t

[Qemu-devel] [qemu-trace] how to add trace easily?

2017-07-19 Thread Sam
Hi all, I'm debugging qemu start up process, I want to add a log in 'io_mem_init' function in exce.c as bellow: > static void io_mem_init(void) > { > ADD_LOG_HERE_TO_RECORD_TIME(); > memory_region_init_io(&io_mem_rom, NULL, &unassigned_mem_ops, NULL, > NULL, UINT64_MAX); > memory_regi

[Qemu-devel] Why "trace event does not exist"?

2017-07-19 Thread Sam
Hi all, I want to add new trace-event and log it, so I add into $QEMU/trace-event like this: io_mem_init(void) "" > and after configure, $QEMU/build/trace-events-all also have this. then I add code like this into $QEMU/exec.c trace_io_mem_init(); > then I `make` and `make install`. But when I

[Qemu-devel] For unix domain socket, will only one client could connect to this socket?

2017-07-27 Thread Sam
Hi all, I'm working on qemu-qga, and I want to send qmp command from this unix socket, but it hanged there(no response), I don't know if it's connect failed or something? [root@yf-mos-test-net09 ~]# socat > /opt/cloud/workspace/servers/f6fdd093-383b-444e-9bcf-dfa81794d465/qga.sock > readline > {"

Re: [Qemu-devel] For unix domain socket, will only one client could connect to this socket?

2017-07-27 Thread Sam
Thank you, I think another process connect this socket, so I hanged here. 2017-07-27 18:47 GMT+08:00 Daniel P. Berrange : > On Thu, Jul 27, 2017 at 06:37:32PM +0800, Sam wrote: > > Hi all, > > > > I'm working on qemu-qga, and I want to send qmp command from this unix

[Qemu-devel] How to detect qga socket available?

2017-08-10 Thread Sam
Hi all, I want to send command through qga socket, but sometimes it will hanged there. So I want to test qga socket available first, then send qga command. So my question is how to test qga socket available, which is not taken by others? By timeout? Thank you~

[Qemu-devel] How to get qemu log?

2017-08-13 Thread Sam
Hi all, I add some log like this in QEMU_SRC/hw/i386/pc.c +++ b/hw/i386/pc.c > > @@ -1364,6 +1364,13 @@ void pc_memory_init(PCMachineState *pcms, > > >> linux_boot = (machine->kernel_filename != NULL); > > >> +/* add for qemu start speed */ > > +time_t rawtime; > > +struct tm * t

[Qemu-devel] Why qemu log start late and qemu start guest so long while using '-mem-prealloc' option?

2017-10-25 Thread Sam
Hi all, I'm using qemu to start vm in huge page enviroment, I use CMD1 and CMD2 to test the time of start of a vm, CMD1 contains option '-mem-prealloc', CMD2 does not contain this. I found while using CMD1, the time to run this command is longer then CMD2. For words, I know this option is to wait

Re: [Qemu-devel] Why qemu log start late and qemu start guest so long while using '-mem-prealloc' option?

2017-10-25 Thread Sam
So if I remove '-mem-prealloc' option, the qemu will not mmap while starting guest vm? Or will mmap after some thing? Or will mmap when admin to trigger it by qemu command? 2017-10-25 18:44 GMT+08:00 Dr. David Alan Gilbert : > * Sam (batmanu...@gmail.com) wrote: > > Hi all

Re: [Qemu-devel] Why qemu log start late and qemu start guest so long while using '-mem-prealloc' option?

2017-10-25 Thread Sam
Waiting time is different in different server, and different with memory and cpu usage in one server. For HP PowerEdge R720 with 15+ VM running, it's 10+ second. But If I remove '-mem-prealloc', it's 1 second. 2017-10-25 20:06 GMT+08:00 Dr. David Alan Gilbert : > * Sa

[Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-25 Thread Sam
For qemu-2.6.0, in huge page (1G) environment, after kill the qemu process, memory which is alloc for the vm could not be released. Detail is bellow. Or should I use some specific command to stop vm? I want to know if there someone has the same problem? The start up command is: CMD1="$QEMU_CMD -D

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-25 Thread Sam
BTW, I start VM by this command, and then stop it, then memory leak happens. To compare, I start another VM, and wait for about 10 minutes, and then kill it as I does above, then no memory leak happens. So is this a bug of KVM or qemu ? 2017-10-26 11:09 GMT+08:00 Sam : > For qemu-2.6.0,

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-26 Thread Sam
I don't know if this process is: 1. qemu call kernel API to alloc 40G memory. 2. qemu process is killed by hand. 3. kernel alloc 40G memory, but qemu process is down, then this 40G is left in kernel. 2017-10-26 11:54 GMT+08:00 Sam : > BTW, I start VM by this command, and then stop

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-26 Thread Sam
'-mem-prealloc' is to reduce the start time of VM, but now it seems I have to do more test. 2017-10-26 22:02 GMT+08:00 Daniel P. Berrange : > On Thu, Oct 26, 2017 at 11:09:49AM +0800, Sam wrote: > > For qemu-2.6.0, in huge page (1G) environment, after kill the qemu > process,

Re: [Qemu-devel] [QGA] Bug of qga?

2017-08-29 Thread Sam
pt it immediately(use `ctrl+c`). 3. then use that script to send command2(do not send command1) again, then you could get the result of command1. 2017-08-29 17:04 GMT+08:00 Sameeh Jubran : > Hi Sam, > > Thanks for reporting this, in order to debug this efficiently I need you > to provide

Re: [Qemu-devel] [QGA] Bug of qga?

2017-08-29 Thread Sam
Qemu-2.6.0 2017-08-30 14:20 GMT+08:00 Sam : > Hi all, > > I could repeat it, host os and guest os is Centos-7, qemu-ga is alive in > guest. the step to repeat it is: > > 1. run python script just like the first email. > 2. send qmp command1(cmd in the python script, like

[Qemu-devel] How to use monitor socket in python to connect VM?

2017-09-03 Thread Sam
Hi all, I'm using python socket to connect VM's monitor socket like this: [root@yf-mos-test-net09 tests]# python > Python 2.7.5 (default, Jun 24 2015, 00:41:19) > [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from s

Re: [Qemu-devel] How to use monitor socket in python to connect VM?

2017-09-04 Thread Sam
/path/qemu.sock'), is it the same socket of qga socket? Thank you~ 2017-09-04 17:36 GMT+08:00 Daniel P. Berrange : > On Mon, Sep 04, 2017 at 02:17:39PM +0800, Sam wrote: > > Hi all, > > > > I'm using python socket to connect VM's monitor socket like this: &g

Re: [Qemu-devel] How to use monitor socket in python to connect VM?

2017-09-04 Thread Sam
quot;query-status"} > {"execute":"query-status"} > unknown command: '{"execute":"query-status"}' And I send QMP json format command, it report error as above. So where is the monitor socket? Why I got error while using QMP comman

Re: [Qemu-devel] How to use monitor socket in python to connect VM?

2017-09-04 Thread Sam
There are two docs: https://wiki.qemu.org/index.php/Documentation/QMP https://en.wikibooks.org/wiki/QEMU/Monitor I don't know which one is right...? 2017-09-04 20:31 GMT+08:00 Sam : > Thank you, but I have to ask last question. My qemu is 2.6.0, and there is > no -qmp option : &

[Qemu-devel] Monitor socket will close after parse command error. Qemu-2.6.2

2017-09-07 Thread Sam
Hi all, I'm using HMP socket to send command to add netdev, my command like this: [gangyewei-3@yf-mos-test-net07 tests]$ sudo python monitor.py 55919 > (qemu): > Connected to qemu monitor ... > on_monitor_open > ds > (qemu): > {'return': ["unknown command: 'ds'"]} > chardev-add > socket,id=char

Re: [Qemu-devel] Monitor socket will close after parse command error. Qemu-2.6.2

2017-09-07 Thread Sam
BTW, same result while using `telnet 127.0.0.1 55919`, which means also have the two problem in the email before. 2017-09-08 11:23 GMT+08:00 Sam : > Hi all, > > I'm using HMP socket to send command to add netdev, my command like this: > > [gangyewei-3@yf-mos-test-net07

Re: [Qemu-devel] Monitor socket will close after parse command error. Qemu-2.6.2

2017-09-07 Thread Sam
_intf1,vhostforce=on Connection closed by foreign host. 2017-09-08 11:32 GMT+08:00 Sam : > BTW, same result while using `telnet 127.0.0.1 55919`, which means also > have the two problem in the email before. > > 2017-09-08 11:23 GMT+08:00 Sam : > >> Hi all, >> >> I

Re: [Qemu-devel] Qemu start VM in huge page without '-mem-prealloc' will get memory leak?

2017-10-30 Thread Sam
Why could I not find in ovs-dpdk maillist? could some one give the bug number? 2017-10-27 15:08 GMT+08:00 Daniel P. Berrange : > On Fri, Oct 27, 2017 at 11:28:33AM +0800, Sam wrote: > > After restart ovs-dpdk(which is openvswitch with dpdk lib), memory is > > released. > >

[Qemu-devel] Please help me to debug memory mis-unmap in ovs-dpdk.

2017-11-01 Thread Sam
Hi all, I'm debugging a mis-unmap bug in ovs-dpdk, process is this: 1. start ovs-dpdk with 10G socket memory, then use `top`, ovs-vswitchd take 10G memory. command is bellow. 2. start qemu vm1 with vhost device as server to connect port on ovs-dpdk, command is bellow. qemu share 40G memory with o

[Qemu-devel] [PATCH 2/4] spapr: Add RTAS sysparm UUID

2014-06-23 Thread Sam Bobroff
Add support for the UUID parameter to the emulated RTAS call ibm,get-system-parameter. Return the guest's UUID as the value for the RTAS UUID system parameter, or null (a zero length result) if it is not set. Signed-off-by: Sam Bobroff --- hw/ppc/spapr_rtas.c | 6 ++ 1 file chang

[Qemu-devel] [PATCH 3/4] spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODE

2014-06-23 Thread Sam Bobroff
This is corrected by using the rtas_st_buffer() function to write to the buffer. The function return value code is also slightly simplified. Signed-off-by: Sam Bobroff --- hw/ppc/spapr_rtas.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/ppc/spapr_rtas.c b

[Qemu-devel] [PATCH 0/4] spapr: improve RTAS get_system_parameter

2014-06-23 Thread Sam Bobroff
s Run Mode" parameter. It also improves the surrounding code a little to support the addition of additional system parameters. Sam Bobroff (4): spapr: Add rtas_st_buffer utility function spapr: Add RTAS sysparm UUID spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODE spapr: Add RTAS sysparm

[Qemu-devel] [PATCH 4/4] spapr: Add RTAS sysparm SPLPAR Characteristics

2014-06-23 Thread Sam Bobroff
roduce the following kernel message: arch/powerpc/platforms/pseries/lparcfg.c \ parse_system_parameter_string Error calling get-system-parameter \ (0xfffd) Signed-off-by: Sam Bobroff --- hw/ppc/spapr_rtas.c | 13 + 1 file changed, 13 insertions(+) diff --git a/hw/ppc/spapr_rtas.

[Qemu-devel] [PATCH 1/4] spapr: Add rtas_st_buffer utility function

2014-06-23 Thread Sam Bobroff
. Signed-off-by: Sam Bobroff --- include/hw/ppc/spapr.h | 17 + 1 file changed, 17 insertions(+) diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 08c301f..39a7764 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -373,6 +373,23 @@ static inline

Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/4] spapr: improve RTAS get_system_parameter

2014-06-24 Thread Sam Bobroff
On 24/06/14 22:06, Alexander Graf wrote: > > On 24.06.14 02:22, Sam Bobroff wrote: >> This series of patches improves QEMU's emulation of the RTAS call >> "ibm,get-system-parameter" by adding support for the "UUID" and "SPLPAR >> Characterist

[Qemu-devel] [PATCH v2 1/4] spapr: Add rtas_st_buffer utility function

2014-06-24 Thread Sam Bobroff
. Signed-off-by: Sam Bobroff --- include/hw/ppc/spapr.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index 08c301f..088baba 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -373,6 +373,19 @@ static inline void

[Qemu-devel] [PATCH v2 3/4] spapr: Add RTAS sysparm UUID

2014-06-24 Thread Sam Bobroff
Add support for the UUID parameter to the emulated RTAS call ibm,get-system-parameter. Return the guest's UUID as the value for the RTAS UUID system parameter, or null (a zero length result) if it is not set. Signed-off-by: Sam Bobroff --- hw/ppc/spapr_rtas.c| 4 include/h

[Qemu-devel] [PATCH v2 0/4] spapr: improve RTAS get_system_parameter

2014-06-24 Thread Sam Bobroff
of them moved out into spapr.h. * Use g_strdup_printf()/g_free() rather than snprintf() to a stack array. * Use cpu_physical_memory_write() instead of looping over each byte. Sam Bobroff (4): spapr: Add rtas_st_buffer utility function spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODE s

[Qemu-devel] [PATCH v2 2/4] spapr: Fix RTAS sysparm DIAGNOSTICS_RUN_MODE

2014-06-24 Thread Sam Bobroff
This is corrected by using the rtas_st_buffer() function to write to the buffer. The RTAS constants are also moved out into a header file, some new constants added and the surrounding code slightly simplified. Signed-off-by: Sam Bobroff --- hw/ppc/spapr_rtas.c| 18 +- include

[Qemu-devel] [PATCH v2 4/4] spapr: Add RTAS sysparm SPLPAR Characteristics

2014-06-24 Thread Sam Bobroff
roduce the following kernel message: arch/powerpc/platforms/pseries/lparcfg.c \ parse_system_parameter_string Error calling get-system-parameter \ (0xfffd) Signed-off-by: Sam Bobroff --- hw/ppc/spapr_rtas.c| 8 include/hw/ppc/spapr.h | 1 + 2 files changed, 9 insertions(+) diff

[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2013-07-31 Thread Sam Stoelinga
Lol weird it's not marked as duplicate anymore anyway, guess it was not you then. Don't know what happened. Can this bug be fixed in KVM or is it really to Windows specific? Else I may have a look at it, never did any KVM development though, should be fun. @Serge: Did you get the license already

[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2013-05-03 Thread Sam Stoelinga
This is also affecting Windows Server 2008 and happens with all usb storage devices I tested. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/685096 Title: USB Passthrough not working for Windows 7 g

Re: [Qemu-devel] [Bug 1319493] Re: strip: '/usr/local/bin/fsdev/virtfs-proxy-helper': No such file make: *** [install] Error 1

2014-06-03 Thread Sam Bobroff
7;/usr/local/bin/fsdev/virtfs-proxy-helper': No such file make: > *** [install] Error 1 I am affected by this issue as well. It seems simple enough so I'll try sending a patch for it :-) Sam.

[Qemu-devel] [PATCH 1/1] Makefile: Correct path in stripping tool binaries

2014-06-03 Thread Sam Bobroff
Allow "make install" to handle tool binaries that reside in sub-directories. Without this patch "make install" will fail if it needs to strip a tool binary (e.g. debugging is not enabled) that is installed from a subdirectory. An example is fsdev/virtfs-proxy-helper. Signed

[Qemu-devel] [Bug 1500175] [NEW] unable to init msix vectors

2015-09-27 Thread Sam Vervaeck
Public bug reported: Using the latest stable (2.4.0.1) and earlier releases (at least down to 2.2.1), I am unable to run a qemu-system-arm virtualization on a Mac OS X Yosemite machine. QEMU was compiled with --enable-sdl. Command line: qemu-system-arm -device virtio-net,netdev=user.0 -drive fil

[Qemu-devel] [Bug 1500175] Re: unable to init msix vectors

2015-09-27 Thread Sam Vervaeck
Oh right, stupid mistake then! Never mind. Thanks for pointing this out. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1500175 Title: unable to init msix vectors Status in QEMU: New Bug descrip

[Qemu-devel] [Bug 1500175] Re: unable to init msix vectors

2015-09-28 Thread Sam Vervaeck
As a sidenote: may I ask why the given command does not work? The IMG should contain a kernel that should be bootable, so there should be no need to specify an extra kernel. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs

Re: [Qemu-devel] [Bug 1500175] unable to init msix vectors

2015-10-01 Thread Sam Vervaeck
Got it, thanks! > Op 29-sep.-2015, om 03:51 heeft Peter Maydell het > volgende geschreven: > > None of QEMU's ARM boards automatically boot a bios image shipped with > QEMU. You must provide one explicitly, or else use the 'built in > bootloader" with -kernel. (I'm not aware of any rom image th

[Qemu-devel] [PATCH 1/1] monitor: correct socket listen port

2015-10-28 Thread Sam Bobroff
quot;. The cause is that the has_port field is not set in the address, so later it is not copied by qapi_copy_SocketAddress(). This patch simply adds the missing "has_port = true". Signed-off-by: Sam Bobroff --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-char

Re: [Qemu-devel] [PATCH 1/1] monitor: correct socket listen port

2015-10-29 Thread Sam Bobroff
On Thu, Oct 29, 2015 at 07:26:14AM +0100, Markus Armbruster wrote: > Sam Bobroff writes: > > > Currently when constructing an inet socket monitor (e.g. via "-monitor > > telent:localhost:12345,server,nowait") the port is ignored and a > > random one is used inst

[Qemu-devel] [PATCH 1/1] Protect stderr from non-blocking mode

2016-01-27 Thread Sam Bobroff
implemented, we display a warning message. Signed-off-by: Sam Bobroff --- This is somewhat of an RFC as the issue probably hasn't been noticed very often (ever?) and there are several approaches to addressing it. The discussion was a while ago, here: http://lists.nongnu.org/archive/html/qe

[Qemu-devel] Question about nonblocking stderr and lost logs

2015-11-29 Thread Sam Bobroff
ng being set on stderr? (Unfortunately I don't have a replication for this using an unmodified QEMU but I suspect I could find one if necessary.) Cheers, Sam.

Re: [Qemu-devel] Question about nonblocking stderr and lost logs

2015-12-06 Thread Sam Bobroff
On Fri, Dec 04, 2015 at 02:33:01PM +0800, Stefan Hajnoczi wrote: > On Mon, Nov 30, 2015 at 04:34:47PM +1100, Sam Bobroff wrote: > > Hi QEMU programmers, > > > > While doing some experimental work on QEMU that has involved adding a lot of > > new log messages (u

Re: [Qemu-devel] [Qemu-ppc] [PATCHv2 07/10] pseries: DEFINE_SPAPR_MACHINE

2015-12-07 Thread Sam Bobroff
NE, > -.class_init= spapr_machine_2_1_class_init, > -.instance_init = spapr_machine_2_1_instance_init, > -}; > +DEFINE_SPAPR_MACHINE(2_1, "2.1"); > > static void spapr_machine_register_types(void) > { > type_register_static(&spapr_machine_info); > -type_register_static(&spapr_machine_2_1_info); > -type_register_static(&spapr_machine_2_2_info); > -type_register_static(&spapr_machine_2_3_info); > -type_register_static(&spapr_machine_2_4_info); > -type_register_static(&spapr_machine_2_5_info); > } > > type_init(spapr_machine_register_types) > -- > 2.5.0 Looks good to me. Just one nit: I couldn't help noticing that the suffix and verstr parameters to the macro were both encoding the same information. Did you consider a macro with the major and minor version as the parameters? e.g. #define DEFINE_SPAPR_MACHINE(major, minor) So usage would be: DEFINE_SPAPR_MACHINE(2, 1); Reviewed-by: Sam Bobroff

Re: [Qemu-devel] Question about nonblocking stderr and lost logs

2015-12-13 Thread Sam Bobroff
On Thu, Dec 10, 2015 at 04:37:22PM +0800, Stefan Hajnoczi wrote: > On Mon, Dec 07, 2015 at 02:22:18PM +1100, Sam Bobroff wrote: > > On Fri, Dec 04, 2015 at 02:33:01PM +0800, Stefan Hajnoczi wrote: > > > On Mon, Nov 30, 2015 at 04:34:47PM +1100, Sam Bobroff wrote: > >

Re: [Qemu-devel] Question about nonblocking stderr and lost logs

2015-12-15 Thread Sam Bobroff
On Mon, Dec 14, 2015 at 03:29:49PM +0800, Stefan Hajnoczi wrote: > On Mon, Dec 14, 2015 at 04:19:50PM +1100, Sam Bobroff wrote: > > On Thu, Dec 10, 2015 at 04:37:22PM +0800, Stefan Hajnoczi wrote: > > > On Mon, Dec 07, 2015 at 02:22:18PM +1100, Sam Bobroff wrote: > > > &

[Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes

2015-07-02 Thread Sam Bobroff
This patch set contains several small fixes to make QEMU more PAPR compliant. Sam Bobroff (4): spapr: Add /ibm,partition-name spapr: Add /rtas/ibm,change-msix-capable spapr: Make ibm,change-msi respect 3 return values spapr: SPLPAR Characteristics hw/ppc/spapr.c | 9

[Qemu-devel] [PATCH 1/4] spapr: Add /ibm,partition-name

2015-07-02 Thread Sam Bobroff
QEMU has a notion of the guest name, so if it's present we might as well put that into the device tree as /ibm,partition-name. This is specificed by PAPR. Signed-off-by: Sam Bobroff --- hw/ppc/spapr.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/sp

[Qemu-devel] [PATCH 3/4] spapr: Make ibm, change-msi respect 3 return values

2015-07-02 Thread Sam Bobroff
Currently, rtas_ibm_change_msi() always returns four values even if less are specified. Correct this by only returning the fourth parameter if it was requested. This is specified by PAPR. Signed-off-by: Sam Bobroff --- hw/ppc/spapr_pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[Qemu-devel] [PATCH 4/4] spapr: SPLPAR Characteristics

2015-07-02 Thread Sam Bobroff
and values are specified by PAPR. Signed-off-by: Sam Bobroff --- hw/ppc/spapr_rtas.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c index 0f1ae55..a08254b 100644 --- a/hw/ppc/spapr_rtas.c +++ b/hw/ppc/spapr_rtas.c @@ -33,6

[Qemu-devel] [PATCH 2/4] spapr: Add /rtas/ibm,change-msix-capable

2015-07-02 Thread Sam Bobroff
QEMU is MSI-X capable and makes it available via ibm,change-msi, so we should indicate this by adding /rtas/ibm,change-msix-capable to the device tree. This is specificed by PAPR. Signed-off-by: Sam Bobroff --- hw/ppc/spapr.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/ppc

[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2013-07-03 Thread Sam Stoelinga
*** This bug is a duplicate of bug 1033727 *** https://bugs.launchpad.net/bugs/1033727 This maybe not a duplicate as we're using 1.3.1 and Windows 7 isn't working there either. All other Operating systems are working though. @Wessel: I believe the bug you pointed out as duplicate is saying th

[Qemu-devel] [Bug 1192780] [NEW] qemu-kvm with snapshot option always fails with Permission denied Could not open disk image

2013-06-19 Thread Sam Stoelinga
Public bug reported: I'm trying to use the option: -snapshot write to temporary files instead of disk image files How to reproduce? See following log: 2013-06-20 02:13:18.532+: starting up LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /u

[Qemu-devel] PPC VCPU ID packing via KVM_CAP_PPC_SMT

2015-10-18 Thread Sam Bobroff
reasonable restriction? Should we add a property (where?) to allow the new machine version to run without the new kernel feature? Could that property default to "on" or "on if supported by the kernel" without it becoming too complicated or causing trouble during migration? Thanks, Sam.

[Qemu-devel] Question about odd snapshot behaviour

2015-10-18 Thread Sam Bobroff
t snapshot with the name "bar" on hd2 which is the one with ID 2. That is not the snapshot that matches the vm state (which is the one with ID 3) and presumably can lead to filesystem corruption on hd2. Do these seem like bugs? Should I try to find a way to fix some or all of them? (Note: I checked the launchpad bug list but didn't see these listed.) Cheers, Sam.

Re: [Qemu-devel] Question about odd snapshot behaviour

2015-10-22 Thread Sam Bobroff
On Mon, Oct 19, 2015 at 02:50:17PM +0200, Kevin Wolf wrote: > [ CC: qemu-block ] > > Am 19.10.2015 um 07:27 hat Sam Bobroff geschrieben: > > Hi all, > > > > While working through the QEMU code that saves and loads snapshots, I've > > noticed some confusing b

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests

2015-08-06 Thread Sam Bobroff
ot; blob to install, and it wouldn't really actually be BIOS but it seems like it would work easily. Since we need a second, different, trampoline for System Reset, I would then need to add yet another blob for that... Still, this doesn't seem so bad. I suppose we could add some structure to the blob (e.g. a table of contents at the start) and fit both trampolines in, but that's inventing yet another file format... ugh. (b) As above but assemble the trampoline code into an ELF dynamic library rather than stripping it down to a raw binary: we could use known symbols to find the trampolines, even the patch locations, so at least we wouldn't be inventing our own format (using dlopen()/dlsym()... I wonder if this would be OK for all platforms...). (c) Assemble it (as above) but include it directly in the QEMU binary by objcopying it in or hexdumping into a C string or something similar. This seems fairly neat but I'm not sure how people would feel about including "binaries" into QEMU this way. Although it would take some work in the build system, it seems like a fairly neat solution to me. Cheers, Sam.

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests

2015-08-09 Thread Sam Bobroff
On Sun, Aug 09, 2015 at 03:53:02PM +0200, Alexander Graf wrote: > > > On 07.08.15 05:37, Sam Bobroff wrote: > > Hello Aravinda and all, > > > > On Wed, Jul 08, 2015 at 01:58:13PM +0530, Aravinda Prasad wrote: > >> On Friday 03 July 2015 11:31 AM, David Gibs

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available

2015-09-07 Thread Sam Bobroff
e if it was used or not. What if we set up another backend that just enables the hcall in KVM? This would answer the question about what to do if both are available as well: just do only what the user has asked for. (But I'm not sure what the default behaviour should be if the user doesn't specify anything.) (Oh also: I have tested the in-kernel hcall using a QEMU modified to enable it and it seems to work :-) Cheers, Sam.

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available

2015-09-08 Thread Sam Bobroff
On Tue, Sep 08, 2015 at 07:38:12AM +0200, Thomas Huth wrote: > On 08/09/15 07:03, Sam Bobroff wrote: > > On Tue, Sep 01, 2015 at 12:53:26PM +0200, Thomas Huth wrote: > >> On 01/09/15 02:38, David Gibson wrote: > >>> On Mon, Aug 31, 2015 at 08:46:01PM +0200, Thomas Hu

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests

2015-09-01 Thread Sam Bobroff
On Tue, Sep 01, 2015 at 04:37:51PM +0530, Aravinda Prasad wrote: > > > On Monday 10 August 2015 09:35 AM, Sam Bobroff wrote: > > On Sun, Aug 09, 2015 at 03:53:02PM +0200, Alexander Graf wrote: > >> > >> > >> On 07.08.15 05:37, Sam Bobroff wrote: > &

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests

2015-09-02 Thread Sam Bobroff
On Thu, Sep 03, 2015 at 09:53:20AM +1000, David Gibson wrote: > On Wed, Sep 02, 2015 at 04:34:01PM +1000, Sam Bobroff wrote: > > On Tue, Sep 01, 2015 at 04:37:51PM +0530, Aravinda Prasad wrote: > > > > > > > > > On Monday 10 August 2015 09:35 AM, Sam Bobroff

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests

2015-09-02 Thread Sam Bobroff
here are existing guests > that assume a kexec() will magically wipe the fwnmi vectors away. Yes, but I think we could handle this separately if necessary: even if we don't need to write anything to the vector, we could still insert a magic value and check for it later. If it's been clobbered by a kexec, go back to the old method. Sam.

Re: [Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes

2015-07-19 Thread Sam Bobroff
On Tue, Jul 07, 2015 at 05:26:49PM +1000, David Gibson wrote: > On Fri, Jul 03, 2015 at 01:42:16PM +1000, Sam Bobroff wrote: > > > > This patch set contains several small fixes to make QEMU more PAPR > > compliant. > > Applied to spapr-next, thanks. > > In fut

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/4] spapr: improve RTAS get_system_parameter

2014-06-25 Thread Sam Bobroff
On 25/06/14 21:12, Alexander Graf wrote: > > On 25.06.14 05:54, Sam Bobroff wrote: >> This series of patches improves QEMU's emulation of the RTAS call >> "ibm,get-system-parameter" by adding support for the "UUID" and "SPLPAR >> Characterist

Re: [Qemu-devel] Statically Compiling including SDL

2016-05-11 Thread Sam McKelvie
I am having this same problem. Looking at the configure script it looks like it prefers to use: pkg-config sdl —static to get the static linker flags, rather than: sdl-config —static-libs The former returns an empty string; the latter returns the correct library list. If it had used the

Re: [Qemu-devel] Statically Compiling including SDL

2016-05-11 Thread Sam McKelvie
it is an SDL package distribution problem; in this case it is coming from delian-jessie. Thank you, Sam McKelvie > On May 11, 2016, at 11:30 AM, Peter Maydell wrote: > > On 11 May 2016 at 19:12, Sam McKelvie wrote: >> I am having this same problem. Looking at the configure scr

[Qemu-devel] [Bug 1349972] Re: qcow2-refcount: qemu-io crashes on 'discard' command

2015-05-05 Thread Sam Azer
FWIW: While trying to restore (apply) a snapshot on a Windows VM (ie: qemu-img snapshot -a snapshotname windows.qcow2 where the image file is 150gb in size,) I got the above error: qemu-img: /build/buildd/qemu-2.0.0+dfsg/block/qcow2-refcount.c:467: update_refcount_discard: Assertion `d->bytes + l

[Qemu-devel] debugging apic

2010-09-28 Thread Sam King
_intr(env)) { //return -1; } intno = pic_read_irq(isa_pic); return intno; } Then the issue manifests as a spurious interrupt and the software ignores it, avoiding the GPF. Does anyone have any ideas as to what is going wrong here? Should I look more closely at the Qemu emulation code or my software? Any help is appreciated. Thanks! --Sam

Re: [Qemu-devel] PATCH: debugging apic

2010-09-28 Thread Sam King
LINT1, but this fixed the incorrect GPF I was getting. --Sam On 9/28/10 10:15 AM, Sam King wrote: Hello, I am seeing a weird crash in my system and I am trying to figure out if it is a software bug or a qemu emulation bug. From the software perspective I am getting a GP fault at a time where

[Qemu-devel] Re: PATCH: debugging apic

2010-09-29 Thread Sam King
/ next_tb = 0; + } + #if !defined(CONFIG_USER_ONLY) } else if ((interrupt_request & CPU_INTERRUPT_VIRQ) && (env->eflags & IF_MASK) && On 9/29/

  1   2   3   4   5   6   7   8   9   10   >