Re: [Qemu-devel] [PATCH] support vhost-user socket to reconnect

2014-12-21 Thread Zhangkun (K)
Yes, this patch is only reconnect socket. The "Is_reconnect" field is used by next patch. -Original Message- From: Zhang Haoyu [mailto:zhhy.zhangha...@gmail.com] Sent: Monday, December 22, 2014 3:20 PM To: Zhangkun (K); qemu-devel@nongnu.org Subject: Re: [Qemu-devel] [PATCH] support vhos

Re: [Qemu-devel] [PATCH] support vhost-user socket to reconnect

2014-12-21 Thread Zhang Haoyu
Hi, Kun Is this patch one of patch series? I don't see any place to reference "is_reconnect" field. On 2014/12/22 15:06, zhangkun wrote: > From: zhangkun > > Signed-off-by: zhangkun > --- > net/vhost-user.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/ne

[Qemu-devel] [PATCH] support vhost-user socket to reconnect

2014-12-21 Thread zhangkun
From: zhangkun Signed-off-by: zhangkun --- net/vhost-user.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/vhost-user.c b/net/vhost-user.c index 24e050c..957e78c 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -26,6 +26,7 @@ typedef struct VhostUserCha

[Qemu-devel] Does kvm friendly support GPT?

2014-12-21 Thread Zhang Haoyu
Hi, When I perform P2V from native servers with win2008 to kvm vm, some cases failed due to the physical disk was using GPT for partition, and QEMU doesn't support GPT by default. And, I see in below site that OVMF can be used to enable UEFI to support GPT, http://www.linux-kvm.org/page/OVMF But

Re: [Qemu-devel] [PATCH] net: Add persistent flag to -net tap option

2014-12-21 Thread Jason Wang
On 12/21/2014 03:48 PM, Roy Vardi wrote: > From: Roy Vardi > > Add 'persistent' boolean flag to -net tap option. > When set to off - tap interface will be released on shutdown > When set to on\not specified - tap interface will remain I'm interested of the user cases in the case. Usu

Re: [Qemu-devel] [PATCH] check return value of fcntl() to detect invalid fd

2014-12-21 Thread Jason Wang
On 12/22/2014 01:28 PM, Amos Kong wrote: > On Mon, Dec 22, 2014 at 11:48:29AM +0800, Jason Wang wrote: >> On 12/19/2014 09:25 PM, Amos Kong wrote: >>> Passing some invalid fds in QEMU commandline, the fds don't exist. >>> QEMU will get error "TUNGETIFF ioctl() failed: Bad file descriptor", >>> and

Re: [Qemu-devel] [PATCH] check return value of fcntl() to detect invalid fd

2014-12-21 Thread Amos Kong
On Mon, Dec 22, 2014 at 11:48:29AM +0800, Jason Wang wrote: > > On 12/19/2014 09:25 PM, Amos Kong wrote: > > Passing some invalid fds in QEMU commandline, the fds don't exist. > > QEMU will get error "TUNGETIFF ioctl() failed: Bad file descriptor", > > and coredump in setting queues. > > > > This

[Qemu-devel] How to deal with the problem about communicating from vm to host or vm to vm when switch process was restarted

2014-12-21 Thread Zhangkun (K)
Hi, all I used switch and vhost-user to receive packets from vm to host, or to send packets to vm . When switch process was restarted by any time, it was not communicated with each other from vm to host. How to deal with the problem about communicating from vm to host or vm to vm when switch p

[Qemu-devel] [question] How to get the guest physical memory usage from host?

2014-12-21 Thread Zhang Haoyu
Hi, How to get the guest physical memory usage from host? I don't want to introduce a guest-agent to get the info. Thanks, Zhang Haoyu

Re: [Qemu-devel] [PATCH] check return value of fcntl() to detect invalid fd

2014-12-21 Thread Jason Wang
On 12/19/2014 09:25 PM, Amos Kong wrote: > Passing some invalid fds in QEMU commandline, the fds don't exist. > QEMU will get error "TUNGETIFF ioctl() failed: Bad file descriptor", > and coredump in setting queues. > > This patch checked return value of first operate to fd, QEMU will > report erro

[Qemu-devel] [Bug 1401798] Re: Qemu 2.2.0 savevm crash.

2014-12-21 Thread changlimin
The bug can be reproduced every time. 1. I install a Ubuntu 14.04 guest. 2. The monitor command is (qemu) snapshot_blkdev_internal drive-virtio-disk0 s1 3. Or (qemu) savevm s1 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://

[Qemu-devel] [Bug 1404690] Re: Qemu crashes with chrooted m68k

2014-12-21 Thread Michel Boaventura
Hi Peter, Thanks for you time! I've attached my mini chroot environment. As you can see, it is very minimal, but enough to be chrooted and to test this. I will try your suggestions in a couple of days, but if you could please try it before, I will really appreciate. Michel ** Attachment added: "

[Qemu-devel] [Bug 1404690] Re: Qemu crashes with chrooted m68k

2014-12-21 Thread Peter Maydell
Oh, if you're able to put your chroot up for download somewhere so I can reproduce the problem, I can have a look at it for you. (I don't otherwise have a coldfire chroot or toolchain.) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [Bug 1404690] [NEW] Qemu crashes with chrooted m68k

2014-12-21 Thread Peter Maydell
On 21 December 2014 at 16:21, Michel Boaventura wrote: > Everything works fine. I can run bash, busybox, ash, but when I try to > run a ls or just type an invalid command, I got the attached sequence of > messages, which end like so: > > 11351 waitpid(-1,0xf6fffa00,0x3) = -1 errno=10 (No child pro

Re: [Qemu-devel] [PULL 0/5] Net patches

2014-12-21 Thread Peter Maydell
On 19 December 2014 at 13:18, Stefan Hajnoczi wrote: > The following changes since commit 86b182ac0e0b44726d85598cbefb468ed22517fc: > > Merge remote-tracking branch 'remotes/xtensa/tags/20141217-xtensa' into > staging (2014-12-17 17:31:26 +) > > are available in the git repository at: > >

Re: [Qemu-devel] [PATCH RFC for-2.3 6/6] qga: add memory block command that unsupported to blacklist

2014-12-21 Thread Michael Roth
Quoting zhanghailiang (2014-12-06 00:59:19) > For memory block command, we only support for linux with sysfs. > > Signed-off-by: zhanghailiang Reviewed-by: Michael Roth > --- > qga/commands-posix.c | 4 +++- > qga/commands-win32.c | 2 ++ > 2 files changed, 5 insertions(+), 1 deletion(-) > >

Re: [Qemu-devel] [PATCH RFC for-2.3 5/6] qga: implement qmp_guest_get_memory_block_size() for Linux with sysfs

2014-12-21 Thread Michael Roth
Quoting zhanghailiang (2014-12-06 00:59:18) > The size of a memory block is architecture dependent, > For example, power uses 16MiB, ia64 uses 1GiB, x86 uses 128M. That's the minimum for Power, but the size can be set via device tree and can differ from one platform to the next. Should either cla

Re: [Qemu-devel] [PATCH RFC for-2.3 4/6] qga: implement qmp_guest_set_memory_blocks() for Linux with sysfs

2014-12-21 Thread Michael Roth
Quoting zhanghailiang (2014-12-06 00:59:17) > Signed-off-by: zhanghailiang > --- > qga/commands-posix.c | 42 +++--- > 1 file changed, 35 insertions(+), 7 deletions(-) > > diff --git a/qga/commands-posix.c b/qga/commands-posix.c > index d3f7d4f..1010e86 100644

[Qemu-devel] [Bug 1404690] [NEW] Qemu crashes with chrooted m68k

2014-12-21 Thread Michel Boaventura
Public bug reported: I'm using qemu-m68k 2.2.0 to chroot into a m68k coldfire linux, which works fine on the coldfire machine. I've been able to use binfmt_msc and used the above code to use qemu with strace: #include #include int main(int argc, char **argv, char **envp) { char *newar

Re: [Qemu-devel] [PATCH RFC for-2.3 3/6] qga: implement qmp_guest_get_memory_blocks() for Linux with sysfs

2014-12-21 Thread Michael Roth
Quoting zhanghailiang (2014-12-06 00:59:16) > We can get guest's memory block information by using command > "guest-get-memory-blocks", the returned value contains a list of memory block > info, such as phys_index, online state, can-offline info. > > Signed-off-by: zhanghailiang > --- > qga/comm

Re: [Qemu-devel] [PATCH RFC for-2.3 2/6] qga: introduce three help functions for memory block functions

2014-12-21 Thread Michael Roth
Quoting zhanghailiang (2014-12-06 00:59:15) > Signed-off-by: zhanghailiang > --- > qga/commands-posix.c | 130 > +++ > 1 file changed, 130 insertions(+) > > diff --git a/qga/commands-posix.c b/qga/commands-posix.c > index b0d6a5d..8917dca 100644 >

Re: [Qemu-devel] [PATCH RFC for-2.3 1/6] qga: introduce three guest memory block commands with stubs

2014-12-21 Thread Michael Roth
Quoting zhanghailiang (2014-12-06 00:59:14) > Introduce three new guest commands: > guest-get-memory-blocks, guest-set-memory-blocks, guest-get-memory-block-size. > > With these three commands, we can support online/offline guest's memory block > (logical memory hotplug/unplug) as required from ho

[Qemu-devel] [Bug 1368815] Change abandoned on cinder (master)

2014-12-21 Thread OpenStack Infra
Change abandoned by John Griffith (john.griffi...@gmail.com) on branch: master Review: https://review.openstack.org/141259 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1368815 Title: qemu-img conv

Re: [Qemu-devel] alt-gr on Windows

2014-12-21 Thread Thebault, Remi
Le 18/12/2014 12:55, Kevin Wolf a écrit : CCing Stefan Weil, who is both the Windows maintainer and the author of commit 2777ccc5, which introduced the MapVirtualKey() call. As there is a special case for Alt Gr in the code, I suppose he had this working back then. From what I understand (whic

[Qemu-devel] [PULL 13/13] target-tricore: Add instructions of RR1 opcode format, that have 0xb3 as first opcode

2014-12-21 Thread Bastian Koppelmann
Add instructions of RR1 opcode format, that have 0xb3 as first opcode. Add helper functions mulh, mulmh and mulrh, that compute multiplication, with multiprecision (mulmh) or rounding (mulrh) of 4 halfwords, being either low or high parts of two 32 bit regs. Signed-off-by: Bastian Koppelmann Rev

[Qemu-devel] [PULL 08/13] target-tricore: Add instructions of RR opcode format, that have 0xf as the first opcode

2014-12-21 Thread Bastian Koppelmann
Add instructions of RR opcode format, that have 0xf as the first opcode. Add helper functions: * clo/z/s: Counts leading ones/zeros/signs. * clo/z/s_h: Count leading ones/zeros/signs in two haflwords. * sh/_h: Shifts one/two word/hwords. * sha/_h: Shifts one/two word/hwords arithmet

[Qemu-devel] [PULL 03/13] target-tricore: add missing 64-bit MOV in RLC format

2014-12-21 Thread Bastian Koppelmann
From: Alex Zuepke Signed-off-by: Alex Zuepke Reviewed-by: Bastian Koppelmann Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c | 12 target-tricore/tricore-opcodes.h | 1 + 2 files changed, 13 insertions(+) diff --git a/target-tricore/translate.c b/target-t

[Qemu-devel] [PULL 07/13] target-tricore: Add instructions of RR opcode format, that have 0xb as the first opcode

2014-12-21 Thread Bastian Koppelmann
Add instructions of RR opcode format, that have 0xb as the first opcode. Add helper functions, for hword and byte arithmetics: * add_h_ssov/suov: Add two halfword and saturate on overflow. * sub_h_ssov/suov: Sub two halfword and saturate on overflow. * absdif_h_ssov: Compute absolute di

[Qemu-devel] [PULL 11/13] target-tricore: Add missing 1.6 insn of BOL opcode format

2014-12-21 Thread Bastian Koppelmann
Some of the 1.6 ISA instructions were still missing. So let's add them. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 49 +++- target-tricore/tricore-opcodes.h | 6 + 2 files changed, 54 insertion

[Qemu-devel] [PULL 04/13] target-tricore: pretty-print register dump and show more status registers

2014-12-21 Thread Bastian Koppelmann
From: Alex Zuepke Now using psw_read() to retrieve the status bits correctly. Signed-off-by: Alex Zuepke Reviewed-by: Bastian Koppelmann Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a

[Qemu-devel] [PULL 06/13] target-tricore: Change SSOV/SUOV makro name to SSOV32/SUOV32

2014-12-21 Thread Bastian Koppelmann
Those makros are exclusively used for 32 bit arithmetics and won't work for 16 bit with two halfwords. So lets get rid of the len parameter and make them always use 32 bit. Now no token pasting is needed anymore and they can be regular functions. Signed-off-by: Bastian Koppelmann Reviewed-by: Ric

[Qemu-devel] [PULL 02/13] target-tricore: typo in BOL format

2014-12-21 Thread Bastian Koppelmann
From: Alex Zuepke Signed-off-by: Alex Zuepke Reviewed-by: Bastian Koppelmann Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c | 4 ++-- target-tricore/tricore-opcodes.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-tricore/translate.c b/ta

[Qemu-devel] [PULL 09/13] target-tricore: Add instructions of RR opcode format, that have 0x1 as the first opcode

2014-12-21 Thread Bastian Koppelmann
Add instructions of RR opcode format, that have 0x1 as the first opcode. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 97 ++ 1 file changed, 97 insertions(+) diff --git a/target-tricore/translate.c

[Qemu-devel] [PULL 10/13] target-tricore: Add instructions of RR opcode format, that have 0x4b as the first opcode

2014-12-21 Thread Bastian Koppelmann
Add instructions of RR opcode format, that have 0x4b as the first opcode. Add helper functions: * parity: Calculates the parity bits for every byte of a 32 int. * bmerge/bsplit: Merges two regs into one bitwise/Splits one reg into two bitwise. * unpack: unpack a IEEE 754 single precisi

[Qemu-devel] [PULL 05/13] target-tricore: Fix mask handling JNZ.T being 7 bit long

2014-12-21 Thread Bastian Koppelmann
The mask is actually 7 bit long, instead of 6, so the expression checking for JNZ.T is always false. Let's make the mask 1 bit wider. Signed-off-by: Bastian Koppelmann --- target-tricore/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-tricore/translate.

[Qemu-devel] [PULL 12/13] target-tricore: Fix MFCR/MTCR insn and B format offset.

2014-12-21 Thread Bastian Koppelmann
Fix gen_mtcr using wrong register. Fix gen_mtcr/mfcr using sign extended offsets. Fix B format insn using not sign extendend offsets. Signed-off-by: Bastian Koppelmann Reviewed-by: Richard Henderson --- target-tricore/translate.c | 6 -- target-tricore/tricore-opcodes.h | 2 ++ 2 file

[Qemu-devel] [PULL 01/13] target-tricore: fix offset masking in BOL format

2014-12-21 Thread Bastian Koppelmann
From: Alex Zuepke Signed-off-by: Alex Zuepke Reviewed-by: Bastian Koppelmann Signed-off-by: Bastian Koppelmann --- target-tricore/tricore-opcodes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-tricore/tricore-opcodes.h b/target-tricore/tricore-opcodes.h index 0a9

[Qemu-devel] [PULL 00/13] tricore patches

2014-12-21 Thread Bastian Koppelmann
stream.git tags/pull-tricore-20141221 for you to fetch changes up to 9655b9328a566116c198c52792775a0641d56915: target-tricore: Add instructions of RR1 opcode format, that have 0xb3 as first opcode (2014-12-21 18:35:49 +) TriCo

[Qemu-devel] [PATCH] linux-user: support target-to-host SCM_CREDENTIALS

2014-12-21 Thread Alex Suykov
When passing ancillary data through a unix socket, handle credentials properly instead of doing a simple copy and issuing a warning. Signed-off-by: Alex Suykov --- linux-user/syscall.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/linux-user/syscall.c b/lin

[Qemu-devel] [Bug 1404610] [NEW] [feature request] HP300 m68k system?

2014-12-21 Thread b4
Public bug reported: QEMU seems to support nothing (specific) that 4.4BSD was targeted to...would be useful to have a complete emulator for a full HP300 to run the binary dist from McKusick's CD set. Devices that'd be needed: * 68020, 68030, or 68040 (How much of these are already present? Not s

[Qemu-devel] [PATCH] net: Add persistent flag to -net tap option

2014-12-21 Thread Roy Vardi
From: Roy Vardi Add 'persistent' boolean flag to -net tap option. When set to off - tap interface will be released on shutdown When set to on\not specified - tap interface will remain Running with -net tap,persistent=off will force the tap interface down when qemu goes down,