Re: [Qemu-devel] [RFC PATCH qemu] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Daniel P. Berrange
On Thu, Oct 26, 2017 at 11:54:59AM +1100, Alexey Kardashevskiy wrote: > On 26/10/17 08:11, Daniel P. Berrange wrote: > > On Wed, Oct 25, 2017 at 07:10:40PM +1100, Alexey Kardashevskiy wrote: > >> On 25/10/17 17:57, Daniel P. Berrange wrote: > >>> On Wed, Oct 25, 2017 at 12:45:10PM +1100, Alexey Kar

Re: [Qemu-devel] [PATCH v2 4/4] vl: remove unnecessary #ifdef CONFIG_TPM

2017-10-26 Thread Valluri, Amarnath
On Tue, 2017-10-24 at 09:20 -0300, Philippe Mathieu-Daudé wrote: > a stub is now provided. > > Signed-off-by: Philippe Mathieu-Daudé > Tested-by: Richard W.M. Jones Reviewed-by: Amarnath Valluri > --- >  vl.c | 2 -- >  1 file changed, 2 deletions(-) > Reviewed-by: > diff --git a/vl.c b/vl.c >

Re: [Qemu-devel] [PATCH v2 3/4] tpm: remove unnecessary #ifdef CONFIG_TPM

2017-10-26 Thread Valluri, Amarnath
On Tue, 2017-10-24 at 09:20 -0300, Philippe Mathieu-Daudé wrote: > Makefile.objs now checks for $(CONFIG_TPM). > > Suggested-by: Stefan Berger > Signed-off-by: Philippe Mathieu-Daudé > --- Reviewed-by: Amarnath Valluri >  tpm.c | 4 >  1 file changed, 4 deletions(-) > > diff --git a/tpm.

[Qemu-devel] [Bug 1342686] Re: Windows 95 setup hangs

2017-10-26 Thread Piotr Gliźniewicz
I've tried the recent QEMU 2.10 (Windows build qemu-w64-setup-20171006.exe) and the bug is still there. It hangs right after "Getting ready to run Windows 95 for the first time..." screen. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEM

Re: [Qemu-devel] [PATCH v2 2/4] tpm: add stubs

2017-10-26 Thread Valluri, Amarnath
On Tue, 2017-10-24 at 09:20 -0300, Philippe Mathieu-Daudé wrote: > Commit c37cacabf22 moved tpm_cleanup() in the main loop exit, however > this > function is not available when compiling with --disable-tpm. > > Provides necessary stubs to keep code clean of #ifdef'fery. > > Reported-by: BALATON Z

Re: [Qemu-devel] [PULL 00/11] Disassembler patches

2017-10-26 Thread Daniel P. Berrange
On Thu, Oct 26, 2017 at 07:16:45AM +0100, Peter Maydell wrote: > On 26 October 2017 at 07:07, Peter Maydell wrote: > > Hi. This failed to build for Windows: > > Also, after it failed and I backed out the merge, the next thing I > tried to build failed everywhere with: > > warning: unable to rmdi

Re: [Qemu-devel] [PATCH v3 3/5] migration: No need to return the size of the cache

2017-10-26 Thread Juan Quintela
"Dr. David Alan Gilbert" wrote: > * Juan Quintela (quint...@redhat.com) wrote: >> After the previous commits, we make sure that the value passed is >> right, or we just drop an error. So now we return if there is one >> error or we have setup correctly the value passed. >> >> Signed-off-by: Juan

Re: [Qemu-devel] [PULL 00/11] Disassembler patches

2017-10-26 Thread Richard Henderson
On 10/26/2017 08:07 AM, Peter Maydell wrote: > On 25 October 2017 at 13:30, Richard Henderson > wrote: >> Support for Capstone, plus an arm32 fix. >> >> >> r~ >> >> >> The following changes since commit 3d7196d43bfe12efe98568cb60057e273652b99b: >> >> Merge remote-tracking branch >> 'remotes/kra

Re: [Qemu-devel] Block format 'raw' does not support the option 'locking' when disable image locking with option locking=off

2017-10-26 Thread Max Reitz
On 2017-10-26 03:06, Changlimin wrote: > share-rw=on is good for raw format file, but bad for qcow2 format file: > > Failed to get "write" lock > Is another process using the image? > > Is this intented? Yes, because you can never share qcow2 image files between VMs. The qcow2 format itself doe

Re: [Qemu-devel] [PATCH qemu v2] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Darren Kenny
Hi Alexey, On Thu, Oct 26, 2017 at 12:34:45PM +1100, Alexey Kardashevskiy wrote: The new git-submodule.sh script writes .git-submodule-status to the source directory every time no matter what. This makes it conditional. Signed-off-by: Alexey Kardashevskiy --- Changes: v2: * fixed "status" bran

Re: [Qemu-devel] Block format 'raw' does not support the option 'locking' when disable image locking with option locking=off

2017-10-26 Thread Changlimin
If the qcow2 file is created with preallocation=full, I think metadata will not corrupt when it is shared between two vms? Snapshot is not required. Is this right? BR Chang limin -Original Message- From: Max Reitz [mailto:mre...@redhat.com] Sent: Thursday, October 26, 2017 3:12 PM To:

Re: [Qemu-devel] [PULL 00/11] Disassembler patches

2017-10-26 Thread Peter Maydell
On 26 October 2017 at 08:06, Daniel P. Berrange wrote: > I'm not sure what's giving you the 'pathspec' message though ? I would > expect anything to ignore the capstone dir - its just like any other > untracked file once you go back in time before it was committed. Sorry, just realized that was t

Re: [Qemu-devel] Block format 'raw' does not support the option 'locking' when disable image locking with option locking=off

2017-10-26 Thread Max Reitz
On 2017-10-26 09:18, Changlimin wrote: > If the qcow2 file is created with preallocation=full, I think metadata will > not corrupt when it is shared between two vms? Snapshot is not required. > > Is this right? I wouldn't count on it. If you really want to take the risk, you can probably use t

Re: [Qemu-devel] [RFC PATCH qemu] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Alexey Kardashevskiy
On 26/10/17 18:02, Daniel P. Berrange wrote: > On Thu, Oct 26, 2017 at 11:54:59AM +1100, Alexey Kardashevskiy wrote: >> On 26/10/17 08:11, Daniel P. Berrange wrote: >>> On Wed, Oct 25, 2017 at 07:10:40PM +1100, Alexey Kardashevskiy wrote: On 25/10/17 17:57, Daniel P. Berrange wrote: > On W

[Qemu-devel] [PATCH v2 01/10] tests: rename postcopy-test to migration-test

2017-10-26 Thread Juan Quintela
Instead of repeating the code, we are going to bo more tests on this file Signed-off-by: Juan Quintela --- MAINTAINERS | 1 + tests/Makefile.include | 6 +++--- tests/{postcopy-test.c => migration-test.c} | 8 +++- 3 files changed, 7 inser

[Qemu-devel] [PATCH v2 00/10] Add make check tests for Migration

2017-10-26 Thread Juan Quintela
Hi This is on top of my set_cache_size series. big changes is this v2: - to make review easier, I started renaming postcopy-test.c to migration-test.c - Did cleanups/refactoring there - Don't use global-qtest anymore - check that the parameters that we sent got really set - RFH: comrpress thread

[Qemu-devel] [PATCH v2 04/10] tests: Don't abuse global_qtest

2017-10-26 Thread Juan Quintela
As we have two guests running, just pass always who we want to send a message to. Once there, refactor return_or_event() into wait_command. Signed-off-by: Juan Quintela --- tests/migration-test.c | 55 +- 1 file changed, 27 insertions(+), 28 delet

[Qemu-devel] [PATCH v2 07/10] tests: Add basic migration precopy tcp test

2017-10-26 Thread Juan Quintela
Signed-off-by: Juan Quintela --- tests/migration-test.c | 8 1 file changed, 8 insertions(+) diff --git a/tests/migration-test.c b/tests/migration-test.c index a8718770c9..338254bafe 100644 --- a/tests/migration-test.c +++ b/tests/migration-test.c @@ -620,6 +620,13 @@ static void test_p

[Qemu-devel] [PATCH v2 05/10] tests: check that migration parameters are really assigned

2017-10-26 Thread Juan Quintela
Signed-off-by: Juan Quintela --- tests/migration-test.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/tests/migration-test.c b/tests/migration-test.c index c429a13403..be598d3257 100644 --- a/tests/migration-test.c +++ b/tests/migration-test.c @@

[Qemu-devel] [PATCH v2 08/10] tests: Add precopy test using deprecated commands

2017-10-26 Thread Juan Quintela
Once there, make postcopy test to use the new commands now that we have other test for deprecated ones Signed-off-by: Juan Quintela --- tests/migration-test.c | 48 ++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/tests/migration-tes

[Qemu-devel] [PATCH v2 02/10] tests: Refactor setting of parameters/capabilities

2017-10-26 Thread Juan Quintela
So we can use them in future tests Signed-off-by: Juan Quintela --- tests/migration-test.c | 101 +++-- 1 file changed, 64 insertions(+), 37 deletions(-) diff --git a/tests/migration-test.c b/tests/migration-test.c index 55c4aed719..19a1445076 100644

[Qemu-devel] [PATCH v2 06/10] tests: Add migration precopy test

2017-10-26 Thread Juan Quintela
Signed-off-by: Juan Quintela --- tests/migration-test.c | 68 -- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/tests/migration-test.c b/tests/migration-test.c index be598d3257..a8718770c9 100644 --- a/tests/migration-test.c +++ b/te

[Qemu-devel] [PATCH v2 03/10] tests: Factorize out migrate_test_start/end

2017-10-26 Thread Juan Quintela
We fix global_test users left and right Signed-off-by: Juan Quintela --- tests/migration-test.c | 86 -- 1 file changed, 48 insertions(+), 38 deletions(-) diff --git a/tests/migration-test.c b/tests/migration-test.c index 19a1445076..91fb0277d6 10

[Qemu-devel] [PATCH v2 09/10] tests: Add migration xbzrle test

2017-10-26 Thread Juan Quintela
Signed-off-by: Juan Quintela --- tests/migration-test.c | 66 ++ 1 file changed, 66 insertions(+) diff --git a/tests/migration-test.c b/tests/migration-test.c index b72dff3917..db30b3864b 100644 --- a/tests/migration-test.c +++ b/tests/migration-te

[Qemu-devel] [PATCH v2 10/10] [RFH] tests: Add migration compress threads tests

2017-10-26 Thread Juan Quintela
Yeap, it is still not working. trying to learn how to debug threads for guests running from the testt hardness. For some reason, compression is not working at the moment, test is disabled until I found why. Signed-off-by: Juan Quintela --- tests/migration-test.c | 51 +++

[Qemu-devel] [PATCH] qemu-img.1: Image invalidation on qemu-img commit

2017-10-26 Thread Max Reitz
qemu-img commit invalidates all images between base and top. This should be mentioned in the man page. Suggested-by: Ping Li Signed-off-by: Max Reitz --- qemu-img.texi | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qemu-img.texi b/qemu-img.texi index ee5c5940d3..f

Re: [Qemu-devel] [PATCH v4] NUMA: Enable adding NUMA node implicitly

2017-10-26 Thread Eduardo Habkost
Hi, Sorry for taking so long to review it: On Mon, Oct 23, 2017 at 09:33:42AM +0800, Dou Liyang wrote: > Linux and Windows need ACPI SRAT table to make memory hotplug work properly, > however currently QEMU doesn't create SRAT table if numa options aren't > present > on CLI. > > Which breaks bo

[Qemu-devel] [PATCH qemu] isa-bus: Replace assert() about DMA with error report

2017-10-26 Thread Alexey Kardashevskiy
Running "qemu-system-ppc64 -machine prep -device i82374" creates an ISA bus with two i82374 DMA controllers - one is implicit from ppc_prep_init(), the other one is from "-device i82374". QEMU asserts but it is not immediately clear why. This adds an error message to explain the failure. Signed-o

Re: [Qemu-devel] [PATCH/QEMU] s390x/kvm: use cpu_model_available for guarded storage on compat machines

2017-10-26 Thread David Hildenbrand
On 25.10.2017 18:45, Marc Hartmayer wrote: > On Wed, Oct 25, 2017 at 05:50 PM +0200, David Hildenbrand > wrote: >> On 25.10.2017 17:09, Boris Fiuczynski wrote: >>> On 10/25/2017 12:23 PM, David Hildenbrand wrote: On 25.10.2017 12:18, Christian Borntraeger wrote: > Ping, I plan to submit

Re: [Qemu-devel] [Qemu-block] [PATCH] qemu-img.1: Image invalidation on qemu-img commit

2017-10-26 Thread Jeff Cody
On Thu, Oct 26, 2017 at 09:59:47AM +0200, Max Reitz wrote: > qemu-img commit invalidates all images between base and top. This > should be mentioned in the man page. > > Suggested-by: Ping Li > Signed-off-by: Max Reitz > --- > qemu-img.texi | 9 - > 1 file changed, 4 insertions(+), 5 d

Re: [Qemu-devel] [PATCH/QEMU] s390x/kvm: use cpu_model_available for guarded storage on compat machines

2017-10-26 Thread Christian Borntraeger
On 10/26/2017 01:35 AM, Halil Pasic wrote: try the most interesting scenarios out. > > The idea of the patch is very clear, but I don't understand the bigger gs > feature context fully. > > From what I read in the code, the attempt to enable the gs capability in > the kernel is made regardless

[Qemu-devel] [Bug 1342686] Re: Windows 95 setup hangs

2017-10-26 Thread Thomas Huth
** Changed in: qemu Status: Incomplete => Triaged -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1342686 Title: Windows 95 setup hangs Status in QEMU: Triaged Bug description: Windows 9

[Qemu-devel] [PATCH] tcg: fix x86 compilation with !CONFIG_TCG

2017-10-26 Thread Juan Quintela
This commit: commit 55c3ceef61fcf06fc98ddc752b7cce788ce7680b Author: Richard Henderson Date: Sun Oct 15 19:02:42 2017 -0700 qom: Introduce CPUClass.tcg_initialize Brocke compilation without CONFIG_TCG Signed-off-by: Juan Quintela CC: Richard Henderson --- target/i386/cpu.c | 2 ++ 1 f

Re: [Qemu-devel] [PATCH/QEMU] s390x/kvm: use cpu_model_available for guarded storage on compat machines

2017-10-26 Thread Cornelia Huck
On Fri, 20 Oct 2017 16:54:37 +0200 Christian Borntraeger wrote: > Starting a guest with > > hvm > > > > on an IBM z14 results in > > "qemu-system-s390x: Some features requested in the CPU model are not > available in the configuration: gs" > > This is because guarded storage is f

Re: [Qemu-devel] [PATCH qemu v2] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Alexey Kardashevskiy
On 26/10/17 18:13, Darren Kenny wrote: > Hi Alexey, > > On Thu, Oct 26, 2017 at 12:34:45PM +1100, Alexey Kardashevskiy wrote: >> The new git-submodule.sh script writes .git-submodule-status to >> the source directory every time no matter what. This makes it conditional. >> >> Signed-off-by: Alexey

Re: [Qemu-devel] [RFC PATCH qemu] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Peter Maydell
On 26 October 2017 at 08:45, Alexey Kardashevskiy wrote: > Submodules change once/twice a year so we could live quite happily without > this automation imho. This is a significant underestimate. The openbios submodule alone has been updated 12 times this year. > What if I do not want submodules

Re: [Qemu-devel] host physical address width issues/questions for x86_64

2017-10-26 Thread Peter Xu
On Mon, Oct 23, 2017 at 10:23:43AM -0700, Prasad Singamsetty wrote: [...] > >>Proposal: > >> > >>We can simply change the VTD_HOST_ADDRESS_WIDTH to 48 bits > >>with out any other changes to the code. The current set of > >>features in the intel iommu emulator code works for q35 > >>machine type a

Re: [Qemu-devel] [PATCH qemu v2] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Darren Kenny
On Thu, Oct 26, 2017 at 07:18:24PM +1100, Alexey Kardashevskiy wrote: On 26/10/17 18:13, Darren Kenny wrote: Hi Alexey, On Thu, Oct 26, 2017 at 12:34:45PM +1100, Alexey Kardashevskiy wrote: The new git-submodule.sh script writes .git-submodule-status to the source directory every time no matte

Re: [Qemu-devel] [PATCH qemu v2] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Alexey Kardashevskiy
On 26/10/17 19:51, Darren Kenny wrote: > On Thu, Oct 26, 2017 at 07:18:24PM +1100, Alexey Kardashevskiy wrote: >> On 26/10/17 18:13, Darren Kenny wrote: >>> Hi Alexey, >>> >>> On Thu, Oct 26, 2017 at 12:34:45PM +1100, Alexey Kardashevskiy wrote: The new git-submodule.sh script writes .git-subm

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 it, then memory

Re: [Qemu-devel] [Qemu devel V4 PATCH] msf2: Remove dead code reported by Coverity

2017-10-26 Thread Alistair Francis
On Wed, Oct 25, 2017 at 4:29 AM, Subbaraya Sundeep wrote: > Fixed incorrect frame size mask, validated maximum frame > size in spi_write and removed dead code. > > Signed-off-by: Subbaraya Sundeep Reviewed-by: Alistair Francis > --- > v4: > changed %d to %u while logging frame size err

Re: [Qemu-devel] [PATCH] tcg: fix x86 compilation with !CONFIG_TCG

2017-10-26 Thread Richard Henderson
On 10/26/2017 10:18 AM, Juan Quintela wrote: > This commit: > > commit 55c3ceef61fcf06fc98ddc752b7cce788ce7680b > Author: Richard Henderson > Date: Sun Oct 15 19:02:42 2017 -0700 > > qom: Introduce CPUClass.tcg_initialize > > Brocke compilation without CONFIG_TCG > > Signed-off-by: Juan

Re: [Qemu-devel] [PATCH] qga-win: fall back to hardcoded user and group names if LookupAccountSidW failed

2017-10-26 Thread Chen Hanxiao
At 2017-10-26 05:58:07, "Michael Roth" wrote: >Quoting Tomáš Golembiovský (2017-09-29 16:31:02) >> On Fri, 29 Sep 2017 17:11:22 +0800 >> Chen Hanxiao wrote: >> >> > From: Chen Hanxiao >> > >> > On some of windows (win08 sp2), >> > it doesn't work by calling LookupAccountSidW with >> > well-k

Re: [Qemu-devel] [PATCH v3 4/5] xlnx-zcu102: Specify the valid CPUs

2017-10-26 Thread Alistair Francis
On Mon, Oct 23, 2017 at 1:14 PM, Philippe Mathieu-Daudé wrote: > On 10/17/2017 07:31 PM, Alistair Francis wrote: >> List all possible valid CPU options. >> >> Signed-off-by: Alistair Francis >> --- >> >> An implementation for single CPU machines is still being discussed. A >> solution proposed by

Re: [Qemu-devel] [PATCH] qga-win: fall back to hardcoded user and group names if LookupAccountSidW failed

2017-10-26 Thread Michael Roth
Quoting Chen Hanxiao (2017-10-26 04:27:40) > > > At 2017-10-26 05:58:07, "Michael Roth" wrote: > >Quoting Tomáš Golembiovský (2017-09-29 16:31:02) > >> On Fri, 29 Sep 2017 17:11:22 +0800 > >> Chen Hanxiao wrote: > >> > >> > From: Chen Hanxiao > >> > > >> > On some of windows (win08 sp2), > >

[Qemu-devel] [PULL v2 11/11] disas: Add capstone as submodule

2017-10-26 Thread Richard Henderson
Do not require the submodule, but use it if present. Allow the command-line to override system or git submodule either way. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- Makefile| 15 ++ .gitmodules | 3 +++ capston

[Qemu-devel] [PULL v2 00/11] Disassembler patches

2017-10-26 Thread Richard Henderson
quest' into staging (2017-10-24 16:05:57 +0100) are available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-dis-20171026 for you to fetch changes up to e219c499e9f5d4fa0e25dc07682f75531ee84d86: disas: Add capstone as submodule (2017-10-26 11:5

Re: [Qemu-devel] [PULL 00/11] Disassembler patches

2017-10-26 Thread Richard Henderson
On 10/26/2017 09:21 AM, Peter Maydell wrote: > On 26 October 2017 at 08:06, Daniel P. Berrange wrote: >> I'm not sure what's giving you the 'pathspec' message though ? I would >> expect anything to ignore the capstone dir - its just like any other >> untracked file once you go back in time before

[Qemu-devel] [Bug 1127053] Re: assertion failed in exec.c while attempting to start a guest (latest commit)

2017-10-26 Thread Thomas Huth
Triaging old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QE

Re: [Qemu-devel] [PULL 00/11] Disassembler patches

2017-10-26 Thread Daniel P. Berrange
On Thu, Oct 26, 2017 at 08:21:48AM +0100, Peter Maydell wrote: > On 26 October 2017 at 08:06, Daniel P. Berrange wrote: > > I'm not sure what's giving you the 'pathspec' message though ? I would > > expect anything to ignore the capstone dir - its just like any other > > untracked file once you go

Re: [Qemu-devel] [PATCHv4 09/13] lance: move TYPE_LANCE and SysBusPCNetState from lance.c to lance.h

2017-10-26 Thread Mark Cave-Ayland
On 25/10/17 18:47, Peter Maydell wrote: > On 25 October 2017 at 16:59, Mark Cave-Ayland > wrote: >> This enables them to be used outside of lance.c. >> >> Signed-off-by: Mark Cave-Ayland >> CC: Jason Wang > > >> diff --git a/include/hw/net/lance.h b/include/hw/net/lance.h >> new file mode 100

[Qemu-devel] [Bug 1054812] Re: Configure uses wrong libtool on Darwin

2017-10-26 Thread Thomas Huth
Since libcacard is not longer part of QEMU, I assume this is not an issue anymore today. So can we close this bug nowadays? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://

[Qemu-devel] [Bug 1119281] Re: The virtio network device breaks UuidCreateSequential()

2017-10-26 Thread Thomas Huth
Triaging old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QE

Re: [Qemu-devel] [PATCH qemu v2] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Darren Kenny
On Thu, Oct 26, 2017 at 08:03:24PM +1100, Alexey Kardashevskiy wrote: On 26/10/17 19:51, Darren Kenny wrote: On Thu, Oct 26, 2017 at 07:18:24PM +1100, Alexey Kardashevskiy wrote: On 26/10/17 18:13, Darren Kenny wrote: Hi Alexey, On Thu, Oct 26, 2017 at 12:34:45PM +1100, Alexey Kardashevskiy w

Re: [Qemu-devel] [PATCH/QEMU] s390x/kvm: use cpu_model_available for guarded storage on compat machines

2017-10-26 Thread Halil Pasic
On 10/26/2017 10:13 AM, Christian Borntraeger wrote: > > > On 10/26/2017 01:35 AM, Halil Pasic wrote: > try the most interesting scenarios out. >> >> The idea of the patch is very clear, but I don't understand the bigger gs >> feature context fully. >> >> From what I read in the code, the atte

Re: [Qemu-devel] [PATCH 0/3] vfio/pci: Add NVIDIA GPUDirect P2P clique support

2017-10-26 Thread Bob Chen
There seem to be some bugs in these patches, causing my VM failed to boot. Test case: 0. Merge these 3 patches in to release 2.10.1 1. qemu-system-x86_64_2.10.1 ... \ -device vfio-pci,host=04:00.0 \ -device vfio-pci,host=05:00.0 \ -device vfio-pci,host=08:00.0 \ -device vfio-pci,host=09:00.0 \

[Qemu-devel] [PATCH v2 3/4] target/i386: Fix BLSR and BLSI

2017-10-26 Thread Richard Henderson
From: Richard Henderson The implementation of these two instructions was swapped. At the same time, unify the setup of eflags for the insn group. Reported-by: Ricardo Ribalda Delgado Signed-off-by: Richard Henderson --- target/i386/translate.c | 26 +- 1 file changed,

[Qemu-devel] [PATCH v2 1/4] target/i386: Decode AMD XOP prefix

2017-10-26 Thread Richard Henderson
From: Richard Henderson Signed-off-by: Richard Henderson --- target/i386/translate.c | 46 -- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/target/i386/translate.c b/target/i386/translate.c index 7df9233ded..db88cc4764 100644 --- a/t

[Qemu-devel] [PATCH v2 2/4] target/i386: Implement all TBM instructions

2017-10-26 Thread Richard Henderson
From: Richard Henderson Reported-by: Ricardo Ribalda Delgado Signed-off-by: Richard Henderson --- target/i386/cc_helper_template.h | 18 ++ target/i386/cpu.h| 7 ++- target/i386/cc_helper.c | 28 +++-- target/i386/cpu.c| 3 +- target/i386/

[Qemu-devel] [PATCH v2 0/4] target/i386 tcg updates

2017-10-26 Thread Richard Henderson
Resurrecting some patches that were on the list in July. There are two bug fixes in here, so we should at least get those into 2.11. Changes since v1: * Rebased, adjusting for x86_ldub_code. r~ Ricardo Ribalda Delgado (1): target/i386: Fix ANDN (bmi) Richard Henderson (3): target/i386:

[Qemu-devel] [PATCH v2 4/4] target/i386: Fix ANDN (bmi)

2017-10-26 Thread Richard Henderson
From: Ricardo Ribalda Delgado Operands on ANDN are swapped. Tested with the following function: long test_andn(long v1, long v2){ return (~v1 & v2); } Compiled with: gcc kk.c -mbmi -O3 -Wall 0910 : 910:c4 e2 c0 f2 c6 andn %rsi,%rdi,%rax 915:c3

Re: [Qemu-devel] [PATCH] qga-win: fall back to hardcoded user and group names if LookupAccountSidW failed

2017-10-26 Thread Chen Hanxiao
At 2017-10-26 17:59:34, "Michael Roth" wrote: >Quoting Chen Hanxiao (2017-10-26 04:27:40) >> >> >> At 2017-10-26 05:58:07, "Michael Roth" wrote: >> >Quoting Tomáš Golembiovský (2017-09-29 16:31:02) >> >> On Fri, 29 Sep 2017 17:11:22 +0800 >> >> Chen Hanxiao wrote: >> >> >> >> > From: Chen Ha

Re: [Qemu-devel] [PATCH 1/4] qmp: introduce 'writeconfig' command

2017-10-26 Thread Marc-André Lureau
Hi On Mon, Oct 23, 2017 at 5:13 PM, Vadim Galitsyn < vadim.galit...@profitbricks.com> wrote: > Add support for `writeconfig' command for QMP monitor. > This is a simple way to keep track of current state of VM > after series of hotplugs and/or hotunplugs of different devices. > > Signed-off-by: V

Re: [Qemu-devel] [PATCH v6 05/25] block: Make path_combine() return the path

2017-10-26 Thread Alberto Garcia
On Fri 29 Sep 2017 06:53:27 PM CEST, Max Reitz wrote: > Besides being safe for arbitrary path lengths, after some follow-up > patches all callers will want a freshly allocated buffer anyway. > > In the meantime, path_combine_deprecated() is added which has the same > interface as path_combine() had

Re: [Qemu-devel] [Qemu-ppc] [PATCH] target/ppc: Use tcg_gen_lookup_and_goto_ptr

2017-10-26 Thread Thomas Huth
On 30.06.2017 20:37, Richard Henderson wrote: > Cc: qemu-...@nongnu.org > Signed-off-by: Richard Henderson > --- > target/ppc/translate.c | 23 --- > 1 file changed, 8 insertions(+), 15 deletions(-) *ping* Richard, David, any chance that we can still get this in for 2.11? I

Re: [Qemu-devel] [PATCH qemu v2] git-submodule.sh: Do not try writing to source directory if not necessary

2017-10-26 Thread Daniel P. Berrange
On Thu, Oct 26, 2017 at 12:34:45PM +1100, Alexey Kardashevskiy wrote: > The new git-submodule.sh script writes .git-submodule-status to > the source directory every time no matter what. This makes it conditional. > > Signed-off-by: Alexey Kardashevskiy > --- > Changes: > v2: > * fixed "status" br

Re: [Qemu-devel] [PATCH] x86: Skip check apic_id_limit for Xen

2017-10-26 Thread Eduardo Habkost
On Mon, Aug 21, 2017 at 10:22:15AM +0800, Lan Tianyu wrote: > On 2017年08月19日 00:38, Eduardo Habkost wrote: > > On Thu, Aug 17, 2017 at 09:37:10AM +0800, Lan Tianyu wrote: > >> On 2017年08月16日 19:21, Paolo Bonzini wrote: > >>> On 16/08/2017 02:22, Lan Tianyu wrote: > Xen vIOMMU device model will

Re: [Qemu-devel] [PATCH v3 3/5] migration: No need to return the size of the cache

2017-10-26 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > "Dr. David Alan Gilbert" wrote: > > * Juan Quintela (quint...@redhat.com) wrote: > >> After the previous commits, we make sure that the value passed is > >> right, or we just drop an error. So now we return if there is one > >> error or we have setup

[Qemu-devel] [v3 0/2] tests/pxe-test: add testcase using vhost-user-bridge

2017-10-26 Thread Jens Freimann
This implements a testcase for pxe-test using the vhost-user interface. Spawn a vhost-user-bridge process and connect it to the qemu process v2->v3: * rebase to current master * run test with slow test cases, as it takes a bit of time Jens Freimann (2): tests/vhost-user-bridge: disable debug

[Qemu-devel] [v3 1/2] tests/vhost-user-bridge: disable debug output by default

2017-10-26 Thread Jens Freimann
From: Jens Freimann vhost-user-bridge prints out a lot of information, including dumps of all transmitted data. When called from a testcase this output clutters the actual test results, so let's make the default no debug output. Reviewed-by: Maxime Coquelin Signed-off-by: Jens Freimann --- te

[Qemu-devel] [v3 2/2] tests/pxe-test: add testcase using vhost-user-bridge

2017-10-26 Thread Jens Freimann
From: Jens Freimann Add a PXE testcase tunneling traffic through vhost-user-bridge process. Create a vhost-user-bridge process and connect it to qemu via a socket. Signed-off-by: Jens Freimann --- tests/Makefile.include | 4 +- tests/pxe-test.c | 111 +++

Re: [Qemu-devel] [PULL 20/51] qom: Introduce CPUClass.tcg_initialize

2017-10-26 Thread Eduardo Habkost
On Wed, Oct 25, 2017 at 11:35:04AM +0200, Richard Henderson wrote: > Move target cpu tcg initialization to common code, > called from cpu_exec_realizefn. > > Acked-by: Andreas Färber > Reviewed-by: Emilio G. Cota > Reviewed-by: Philippe Mathieu-Daudé > Signed-off-by: Richard Henderson It look

[Qemu-devel] [Bug 1120383] Re: incremental live block migration of qemu 1.3.1 doesn't work

2017-10-26 Thread Thomas Huth
If I've got the comments right, this bug has been fixed, so closing this now. If there is an issue remaining, please open a new bug. ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEM

[Qemu-devel] [PATCH WIP] replace numpy with struct

2017-10-26 Thread Joannah Nanjekye
This patch replaces the use of numpy with the standard Library struct module where possible. Signed-off-by: Joannah Nanjekye --- scripts/analyze-migration.py | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/scripts/analyze-migration.py b/scripts/analyze

Re: [Qemu-devel] [PATCH] qemu-img.1: Image invalidation on qemu-img commit

2017-10-26 Thread Kevin Wolf
Am 26.10.2017 um 09:59 hat Max Reitz geschrieben: > qemu-img commit invalidates all images between base and top. This > should be mentioned in the man page. > > Suggested-by: Ping Li > Signed-off-by: Max Reitz Thanks, applied to the block branch. Kevin

[Qemu-devel] [PATCH] build: allow automatic git submodule updates to be disabled

2017-10-26 Thread Daniel P. Berrange
Some people building QEMU use VPATH builds where the source directory is on a read-only volume. In such a case 'scripts/git-submodules.sh update' will always fail and users are required to run it manually themselves on their original writable source directory. While this is already supported, it i

[Qemu-devel] [PATCH] build: don't create temporary files in source dir

2017-10-26 Thread Daniel P. Berrange
There are cases where users do VPATH builds with the source directory being on a read-only volume. In such a case they have to manually run the command 'git-submodule.sh ...modules...' manually ahead of time. When checking for status we should not then write into the source dir. Signed-off-by: Da

[Qemu-devel] [PULL 02/35] qemu-iotests: Test backing_fmt with backing node reference

2017-10-26 Thread Kevin Wolf
This changes test case 191 to include a backing image that has backing_fmt set in the image file, but is referenced by node name in the qemu command line. Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake --- tests/qemu-iotests/191 | 3 ++- tests/qemu-iotests/191.out | 2 +- 2 files changed

[Qemu-devel] [PULL 04/35] block: Add flag to avoid wasted work in bdrv_is_allocated()

2017-10-26 Thread Kevin Wolf
From: Eric Blake Not all callers care about which BDS owns the mapping for a given range of the file, or where the zeroes lie within that mapping. In particular, bdrv_is_allocated() cares more about finding the largest run of allocated data from the guest perspective, whether or not that data is

[Qemu-devel] [PULL 00/35] Block layer patches

2017-10-26 Thread Kevin Wolf
The following changes since commit ae49fbbcd8e4e9d8bf7131add34773f579e1aff7: Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20171025' into staging (2017-10-25 16:38:57 +0100) are available in the git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for you to fetch

[Qemu-devel] [PULL 03/35] block: Allow NULL file for bdrv_get_block_status()

2017-10-26 Thread Kevin Wolf
From: Eric Blake Not all callers care about which BDS owns the mapping for a given range of the file. This patch merely simplifies the callers by consolidating the logic in the common call point, while guaranteeing a non-NULL file to all the driver callbacks, for no semantic change. The only cal

[Qemu-devel] [PULL 07/35] block: Switch bdrv_make_zero() to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Change the internal loop iteration of zeroing a device to track by bytes instead of sectors (although we are still guaranteed that we iterate by steps that are sector-alig

[Qemu-devel] [PULL 01/35] block: don't add 'driver' to options when referring to backing via node name

2017-10-26 Thread Kevin Wolf
From: Peter Krempa When referring to a backing file of an image via node name bdrv_open_backing_file would add the 'driver' option to the option list filling it with the backing format driver. This breaks construction of the backing chain via -blockdev, as bdrv_open_inherit reports an error if bo

[Qemu-devel] [PULL 16/35] qemu-img: Speed up compare on pre-allocated larger file

2017-10-26 Thread Kevin Wolf
From: Eric Blake Compare the following images with all-zero contents: $ truncate --size 1M A $ qemu-img create -f qcow2 -o preallocation=off B 1G $ qemu-img create -f qcow2 -o preallocation=metadata C 1G On my machine, the difference is noticeable for pre-patch speeds, with more than an order of

[Qemu-devel] [PULL 09/35] block: Convert bdrv_get_block_status() to bytes

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually moving away from sector-based interfaces, towards byte-based. In the common case, allocation is unlikely to ever use values that are not naturally sector-aligned, but it is possible that byte-based values will let us be more precise about allocation at the end o

[Qemu-devel] [PULL 12/35] block: Switch bdrv_common_block_status_above() to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal function (no semantic change). Signed-off-by: Eric Blake Signed-off-by: Kevin Wolf --- block/io.c | 61 ++-

[Qemu-devel] [PULL 05/35] block: Make bdrv_round_to_clusters() signature more useful

2017-10-26 Thread Kevin Wolf
From: Eric Blake In the process of converting sector-based interfaces to bytes, I'm finding it easier to represent a byte count as a 64-bit integer at the block layer (even if we are internally capped by SIZE_MAX or even INT_MAX for individual transactions, it's still nicer to not have to worry a

[Qemu-devel] [PULL 18/35] qemu-img: Drop redundant error message in compare

2017-10-26 Thread Kevin Wolf
From: Eric Blake If a read error is encountered during 'qemu-img compare', we were printing the "Error while reading offset ..." message twice; this was because our helper function was awkward, printing output on some but not all paths. Fix it to consistently report errors on all paths, so that

[Qemu-devel] [PULL 08/35] qemu-img: Switch get_block_status() to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Continue by converting an internal function (no semantic change), and simplifying its caller accordingly. Signed-off-by: Eric Blake Reviewed-by: Fam Zheng Reviewed-by:

[Qemu-devel] [PULL 15/35] qemu-img: Simplify logic in img_compare()

2017-10-26 Thread Kevin Wolf
From: Eric Blake As long as we are querying the status for a chunk smaller than the known image size, we are guaranteed that a successful return will have set pnum to a non-zero size (pnum is zero only for queries beyond the end of the file). Use that to slightly simplify the calculation of the

[Qemu-devel] [PULL 06/35] qcow2: Switch is_zero_sectors() to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal function (no semantic change), and rename it to is_zero() in the process. Signed-off-by: Eric Blake Reviewed-by: Fam Zheng Reviewed-by: John Sn

[Qemu-devel] [PULL 17/35] qemu-img: Add find_nonzero()

2017-10-26 Thread Kevin Wolf
From: Eric Blake During 'qemu-img compare', when we are checking that an allocated portion of one file is all zeros, we don't need to waste time computing how many additional sectors after the first non-zero byte are also non-zero. Create a new helper find_nonzero() to do the check for a first n

[Qemu-devel] [PULL 14/35] block: Convert bdrv_get_block_status_above() to bytes

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually moving away from sector-based interfaces, towards byte-based. In the common case, allocation is unlikely to ever use values that are not naturally sector-aligned, but it is possible that byte-based values will let us be more precise about allocation at the end o

[Qemu-devel] [PULL 10/35] block: Switch bdrv_co_get_block_status() to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal function (no semantic change); and as with its public counterpart, rename to bdrv_co_block_status() and split the offset return, to make the compi

[Qemu-devel] [PULL 13/35] block: Switch bdrv_co_get_block_status_above() to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal type (no semantic change), and rename it to match the corresponding public function rename. Signed-off-by: Eric Blake Signed-off-by: Kevin Wolf

[Qemu-devel] [PULL 19/35] qemu-img: Change check_empty_sectors() to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake Continue on the quest to make more things byte-based instead of sector-based. Signed-off-by: Eric Blake Reviewed-by: John Snow Signed-off-by: Kevin Wolf --- qemu-img.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/qemu-img.

[Qemu-devel] [PULL 25/35] qcow2: Reduce is_zero() rounding

2017-10-26 Thread Kevin Wolf
From: Eric Blake Now that bdrv_is_allocated accepts non-aligned inputs, we can remove the TODO added in earlier refactoring. Signed-off-by: Eric Blake Signed-off-by: Kevin Wolf --- block/qcow2.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/block/qcow2.c b/b

[Qemu-devel] [PULL 11/35] block: Switch BdrvCoGetBlockStatusData to byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal type (no semantic change), and rename it to match the corresponding public function rename. Signed-off-by: Eric Blake Signed-off-by: Kevin Wolf

[Qemu-devel] [PULL 33/35] qcow2: Fix unaligned preallocated truncation

2017-10-26 Thread Kevin Wolf
From: Max Reitz A qcow2 image file's length is not required to have a length that is a multiple of the cluster size. However, qcow2_refcount_area() expects an aligned value for its @start_offset parameter, so we need to round @old_file_size up to the next cluster boundary. Reported-by: Ping Li

[Qemu-devel] [PULL 20/35] qemu-img: Change compare_sectors() to be byte-based

2017-10-26 Thread Kevin Wolf
From: Eric Blake In the continuing quest to make more things byte-based, change compare_sectors(), renaming it to compare_buffers() in the process. Note that one caller (qemu-img compare) only cares about the first difference, while the other (qemu-img rebase) cares about how many consecutive se

  1   2   3   >