[Qemu-devel] GTK UI keycodes broken under Wayland

2016-11-30 Thread Stefan Hajnoczi
I recently upgraded to Fedora 25 which runs Wayland by default. The GTK UI is now sending unknown keycodes to the guests. Although alphanumeric keys work, the cursor keys are broken. There is X11-specific code for keycode mapping in ui/gtk.c. Perhaps something is needed to make that work under

Re: [Qemu-devel] Question about open() in qemu

2016-11-30 Thread Alexey Kardashevskiy
On 30/11/16 21:11, morgenlette madeBy wrote: > Hello > > I am studnet studying QEMU. > > I have a question open in QEMU. > > In function handle_aiocb_rw_linear() in block/raw-posix.c, > > i tried to open my device driver(mydev). > > this driver was confirmed safe operation by test program. >

[Qemu-devel] [PATCH] docs: Fix description of the sentence

2016-11-30 Thread Zhang Chen
Say it in another way to make it easier to understand. Signed-off-by: Zhang Chen Signed-off-by: Eric Blake Signed-off-by: Stefan Weil --- docs/colo-proxy.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

Re: [Qemu-devel] [PATCH v7 0/5] IOMMU: intel_iommu support map and unmap notifications

2016-11-30 Thread Lan Tianyu
On 2016年11月28日 23:51, Aviv B.D wrote: > From: "Aviv Ben-David" > > * Advertize Cache Mode capability in iommu cap register. > This capability is controlled by "cache-mode" property of intel-iommu > device. > To enable this option call QEMU with "-device

[Qemu-devel] [PATCH 2/3] Add a new qmp command to start/stop replication

2016-11-30 Thread Zhang Chen
We can call this qmp command to start/stop replication outside of qemu. Like Xen colo need this function. Signed-off-by: Zhang Chen Signed-off-by: Wen Congyang --- docs/qmp-commands.txt | 17 + migration/colo.c | 22

[Qemu-devel] [PATCH 3/3] Add a new qmp command to do checkpoint, get replication error

2016-11-30 Thread Zhang Chen
We can call this qmp command to do checkpoint outside of qemu. Like Xen colo need this function. Signed-off-by: Zhang Chen Signed-off-by: Wen Congyang --- docs/qmp-commands.txt | 24 migration/colo.c | 10

[Qemu-devel] [PATCH 1/3] Migration: Don't load vmdesc when xen is enabled

2016-11-30 Thread Zhang Chen
Xen need't this. Signed-off-by: Zhang Chen Signed-off-by: Wen Congyang --- migration/savevm.c | 4 1 file changed, 4 insertions(+) diff --git a/migration/savevm.c b/migration/savevm.c index 0363372..bec6c7e 100644 ---

[Qemu-devel] [PATCH 0/3] Add new qmp commands to suppurt Xen COLO

2016-11-30 Thread Zhang Chen
Xen COLO depend on qemu COLO replication function. So, We need new qmp commands for Xen to use qemu replication. Zhang Chen (3): Migration: Don't load vmdesc when xen is enabled Add a new qmp command to start/stop replication Add a new qmp command to do checkpoint, get replication error

Re: [Qemu-devel] [PATCH v2 4/6] hw/timer: Add Epson RX8900 RTC support

2016-11-30 Thread Alexey Kardashevskiy
On 30/11/16 16:36, Alastair D'Silva wrote: > From: Alastair D'Silva > > This patch adds support for the Epson RX8900 I2C RTC. > > The following chip features are implemented: > - RTC (wallclock based, ptimer 10x oversampling to pick up > wallclock transitions) > -

[Qemu-devel] [PATCH v5 1/3] tests/tcg: Add i386 litmus test

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/i386/litmus/Makefile | 42 ++ tests/tcg/i386/litmus/README.txt| 22 + tests/tcg/i386/litmus/SAL.c | 491 +++ tests/tcg/i386/litmus/affinity.c| 159 + tests/tcg/i386/litmus/affinity.h|

Re: [Qemu-devel] [kvm-unit-tests PATCH v11 1/3] arm: Add PMU test

2016-11-30 Thread Wei Huang
On 11/25/2016 08:26 AM, Andrew Jones wrote: > On Fri, Nov 25, 2016 at 12:32:24PM +, Andre Przywara wrote: >> Hi Drew, >> >> >> >> On 23/11/16 17:15, Andrew Jones wrote: > + > +#if defined(__arm__) I guess you should use the arch specific header files we have in place

[Qemu-devel] [kvm-unit-tests PATCH v13 1/4] arm: Define macros for accessing system registers

2016-11-30 Thread Wei Huang
This patch defines four macros to assist creating system register accessors under both ARMv7 and AArch64: * DEFINE_GET_SYSREG32(name, ...) * DEFINE_SET_SYSREG32(name, ...) * DEFINE_GET_SYSREG64(name, ...) * DEFINE_SET_SYSREG64(name, ...) These macros are translated to inline functions

[Qemu-devel] [PATCH v5 3/3] travis: Enable litmus tests

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- .travis.yml | 8 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9916178..881c525 100644 --- a/.travis.yml +++ b/.travis.yml @@ -99,6 +99,7 @@ matrix: before_install: - sudo apt-get

[Qemu-devel] [PATCH 19/19] tests/tcg: test-i386.c: Fix format warnings

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/i386/test-i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index b0f8975..6a11c2f 100644 --- a/tests/tcg/i386/test-i386.c +++

[Qemu-devel] [kvm-unit-tests PATCH v13 4/4] arm: pmu: Add CPI checking

2016-11-30 Thread Wei Huang
From: Christopher Covington Calculate the numbers of cycles per instruction (CPI) implied by ARM PMU cycle counter values. The code includes a strict checking facility intended for the -icount option in TCG mode in the configuration file. Signed-off-by: Christopher

[Qemu-devel] [PATCH v5 0/3] Add litmus tests for MTTCG consistency tests

2016-11-30 Thread Pranith Kumar
Hello, The following patch series adds litmus tests to test consistency for MTTCG enabled qemu. These patches apply on top of the clean up tests/tcg folder made by my previous patch series. The tests were generated using the litmus tool. The sources and instructions on how to generate these

[Qemu-devel] [PATCH 14/19] tests/tcg: Move i386 tests to arch specific folder

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/Makefile | 156 tests/tcg/i386/Makefile | 88 ++ tests/tcg/{ => i386}/hello-i386.c | 0 tests/tcg/{ => i386}/pi_10.com | Bin

[Qemu-devel] [kvm-unit-tests PATCH v13 3/4] arm: pmu: Check cycle count increases

2016-11-30 Thread Wei Huang
From: Christopher Covington Ensure that reads of the PMCCNTR_EL0 are monotonically increasing, even for the smallest delta of two subsequent reads. Signed-off-by: Christopher Covington Signed-off-by: Wei Huang Reviewed-by: Andrew

[Qemu-devel] [PATCH 13/19] tests/tcg/i386: Fix hello-i386 test

2016-11-30 Thread Pranith Kumar
Include a missing header and rename the function names to avoid definition mis-match. Signed-off-by: Pranith Kumar --- tests/tcg/hello-i386.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/tcg/hello-i386.c b/tests/tcg/hello-i386.c index

[Qemu-devel] [kvm-unit-tests PATCH v13 2/4] arm: Add PMU test

2016-11-30 Thread Wei Huang
From: Christopher Covington Beginning with a simple sanity check of the control register, add a unit test for the ARM Performance Monitors Unit (PMU). PMU register was read using the newly defined macros. Signed-off-by: Christopher Covington

[Qemu-devel] [PATCH 17/19] tests/tcg: Move independent tests to misc dir

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/misc/Makefile | 81 +++ tests/tcg/{ => misc}/linux-test.c | 0 tests/tcg/{ => misc}/sha1.c | 0 tests/tcg/{ => misc}/test-mmap.c | 0 tests/tcg/{ => misc}/test_path.c | 0

[Qemu-devel] [kvm-unit-tests PATCH v13 0/4] ARM PMU tests

2016-11-30 Thread Wei Huang
Changes from v12: * Define macros for system register accessors * Re-write PMU code using the newly-defined macros * Code tested under both AArch32 and AArch64 modes Note: 1) Current KVM code has bugs in handling PMCCFILTR write. A fix (see below) is required for this unit testing code to work

[Qemu-devel] [PATCH 16/19] tests/tcg: Fix compilation of linux-test.c

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/linux-test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tcg/linux-test.c b/tests/tcg/linux-test.c index 24fce2b..e676e39 100644 --- a/tests/tcg/linux-test.c +++ b/tests/tcg/linux-test.c @@ -41,6 +41,8 @@ #include

[Qemu-devel] [PATCH 11/19] tests/tcg: Move mips test to arch specific folder

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/{ => mips}/hello-mips.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/tcg/{ => mips}/hello-mips.c (100%) diff --git a/tests/tcg/hello-mips.c b/tests/tcg/mips/hello-mips.c similarity index 100% rename from

[Qemu-devel] [PATCH 08/19] Fix test-i386-fprem compilation

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau This test doesn't depend on glib, and thus cannot use osdep.h. Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar --- tests/tcg/test-i386-fprem.c | 6 +- 1 file changed, 5

[Qemu-devel] [PATCH 18/19] tests/tcg: Add and update Makefiles

2016-11-30 Thread Pranith Kumar
This commit fixes the makefiles to bring them to the desired state. Signed-off-by: Pranith Kumar --- tests/tcg/alpha/Makefile | 38 +++-- tests/tcg/arm/Makefile | 32 +++-- tests/tcg/cris/Makefile

[Qemu-devel] [PATCH 15/19] tests/tcg/i386: Fix test-i386 compilation

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/i386/Makefile | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/tcg/i386/Makefile b/tests/tcg/i386/Makefile index 15f77af..97c1a97 100644 --- a/tests/tcg/i386/Makefile +++ b/tests/tcg/i386/Makefile

[Qemu-devel] [PATCH 10/19] tests/tcg: Move arm tests to arch specific folder

2016-11-30 Thread Pranith Kumar
Signed-off-by: Pranith Kumar --- tests/tcg/arm/Makefile| 45 +++ tests/tcg/{ => arm}/hello-arm.c | 0 tests/tcg/{ => arm}/test-arm-iwmmxt.s | 0 3 files changed, 45 insertions(+) create mode 100644

[Qemu-devel] [PATCH 07/19] linux-test: fix set/getitimer returned timer check

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau The previous value of the timer indicates the time to the next timer expiration, which is likely not the same as when the timer was set. Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar

[Qemu-devel] [PATCH 09/19] test-i386: modernize vector code v4sf

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau Fixes the following compiler warning: tests/tcg/test-i386.c:2110:1: warning: specifying vector types with __attribute__ ((mode)) is deprecated [-Wattributes] typedef int __m64 __attribute__ ((__mode__ (__V2SI__))); ^~~ Signed-off-by:

[Qemu-devel] [PATCH 06/19] linux-test: fix build

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau - QEMU_INCLUDES because it uses qemu/include - stdbool, for the bool usage - sys/resource.h for rusage and friends - qemu/compiler.h because it is no longer included in fprintf-fn.h (we may want to include it from qemu/cutils.h instead)

[Qemu-devel] [PATCH 12/19] tests/tcg: Add tests-tcg hook in Makefile

2016-11-30 Thread Pranith Kumar
You can call 'make tests-tcg' to build and run native tcg tests. Signed-off-by: Pranith Kumar --- tests/Makefile.include | 1 + tests/tcg/Makefile.include | 33 + 2 files changed, 34 insertions(+) create mode 100644

[Qemu-devel] [PATCH v5 00/19] Cleanup of TCG tests

2016-11-30 Thread Pranith Kumar
Hello, This patch series cleans up the tcg tests in tests/tcg folder. The tests have bit-rotten and were not compiling or running. I fixed the Makefiles to make them compile though there are tests which do not pass. The motivation is to add litmus tests to each arch and have them run using the

[Qemu-devel] [PATCH 03/19] check-help: add some hint to run a single test

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau It's possible to run the test directly, tests/test-foo, but then recompilation is not triggered and test environment variables aren't set for you. Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar

[Qemu-devel] [PATCH 02/19] linux-user: fix tcg/mmap test

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau tests/tcg/mmap test fails with values other than default target page size. When creating a map beyond EOF, extra anonymous pages are added up to the target page boundary. Currently, this operation is performed only when

[Qemu-devel] [PATCH 01/19] linux-user: fix settime old value location

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau old_value is the 4th argument of timer_settime(), not the 2nd. Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar --- linux-user/syscall.c | 2 +- 1 file changed, 1

[Qemu-devel] [PATCH 04/19] tests/tcg: comment unused code

2016-11-30 Thread Pranith Kumar
From: Marc-André Lureau I didn't remove it, as suggest by checkpatch, because it looks like it may eventually be restored back. Signed-off-by: Marc-André Lureau Signed-off-by: Pranith Kumar ---

[Qemu-devel] [PULL 1/1] spapr: fix default DRC state for coldplugged LMBs

2016-11-30 Thread David Gibson
From: Michael Roth Currently we set the initial isolation/allocation state for DRCs associated with coldplugged LMBs to ISOLATED/UNUSABLE, respectively, under the assumption that the guest will move this state to UNISOLATED/USABLE. In fact, this is only the case for

[Qemu-devel] [PULL 0/1] ppc-for-2.8 queue 20161201

2016-11-30 Thread David Gibson
The following changes since commit 1cd56fd2e14f67ead2f0458b4ae052f19865c41c: Update version for v2.8.0-rc2 release (2016-11-29 22:26:25 +) are available in the git repository at: git://github.com/dgibson/qemu.git tags/ppc-for-2.8-20161201 for you to fetch changes up to

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Nikunj A Dadhania
Richard Henderson writes: > On 11/29/2016 11:56 PM, Nikunj A Dadhania wrote: >> Lets bring full example here. >> >> TCGv nb = tcg_temp_new(); >> tcg_gen_andi_tl(nb, cpu_gpr[rB(ctx->opcode)], 0xFF); >> tcg_gen_brcondi_tl(TCG_COND_EQ, nb, 0, l1); >> >> /* do

Re: [Qemu-devel] [PATCH v7 1/5] IOMMU: add option to enable VTD_CAP_CM to vIOMMU capility exposoed to guest

2016-11-30 Thread Tian, Kevin
> From: Aviv B.D > Sent: Monday, November 28, 2016 11:52 PM > > From: "Aviv Ben-David" > > This capability asks the guest to invalidate cache before each map operation. > We can use this invalidation to trap map operations in the hypervisor. 'in the hypervisor" or "in the

Re: [Qemu-devel] [PATCH v7 0/5] IOMMU: intel_iommu support map and unmap notifications

2016-11-30 Thread Tian, Kevin
> From: Peter Xu > Sent: Wednesday, November 30, 2016 5:24 PM > > On Mon, Nov 28, 2016 at 05:51:50PM +0200, Aviv B.D wrote: > > * intel_iommu's replay op is not implemented yet (May come in different > > patch > > set). > > The replay function is required for hotplug vfio device and to move

[Qemu-devel] QEMU 1.1.2: block IO throttle might occasionally freeze running process's IO to zero

2016-11-30 Thread Bob Chen
Test case: 1. QEMU 1.1.2 2. Run fio inside the vm, give it some pressure. Watch the realtime throughput 3. block_set_io_throttle drive_2 1 0 0 2000 0 0 # throttle bps and iops, any value 4. Observed that the IO is very likely to freeze to zero. The fio process stuck! 5. Kill the

[Qemu-devel] [PULL 4/5] loader: fix undefined behavior in rom_order_compare()

2016-11-30 Thread Michael S. Tsirkin
From: Laszlo Ersek According to ISO C99 / N1256 (referenced in HACKING): > 6.5.8 Relational operators > > 4 For the purposes of these operators, a pointer to an object that is > not an element of an array behaves the same as a pointer to the first > element of an array of

[Qemu-devel] [PULL 3/5] loader: fix handling of custom address spaces when adding ROM blobs

2016-11-30 Thread Michael S. Tsirkin
From: Laszlo Ersek * Commit 3e76099aacb4 ("loader: Allow a custom AddressSpace when loading ROMs") introduced the "Rom.as" field: (1) It modified the utility callers of rom_insert() to take "as" as a new parameter from *their* callers, and set "rom->as" from that

[Qemu-devel] [PULL 5/5] virtio-crypto: fix uninitialized variables

2016-11-30 Thread Michael S. Tsirkin
From: Gonglei Though crypto_cfg.reserve is an unused field, let me initialize the structure in order to make coverity happy. *** CID 1365923: Uninitialized variables (UNINIT) /hw/virtio/virtio-crypto.c: 851 in virtio_crypto_get_config() 845

[Qemu-devel] [PULL 1/5] spec/vhost-user: fix the VHOST_USER prefix

2016-11-30 Thread Michael S. Tsirkin
From: Wei Wang Signed-off-by: Wei Wang Reviewed-by: Marc-André Lureau Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- docs/specs/vhost-user.txt | 20

[Qemu-devel] [PULL 0/5] virtio, vhost, pc: fixes

2016-11-30 Thread Michael S. Tsirkin
Comments on patches included: - a spec update seems important for 2.8 as incorrect spec makes people implement backends incorrectly. - undefined behaviour fix seems important too - who knows what would compiler optimizers come up with Others are imho clearly uncontroversial. The following

[Qemu-devel] [PULL 2/5] intel_iommu: fix incorrect device invalidate

2016-11-30 Thread Michael S. Tsirkin
From: Peter Xu "mask" needs to be inverted before use. Signed-off-by: Peter Xu Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/i386/intel_iommu.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [Qemu-devel] [PATCH v2] virtio-crypto: fix uninitialized variables

2016-11-30 Thread Michael S. Tsirkin
On Thu, Dec 01, 2016 at 03:38:50AM +, Gonglei (Arei) wrote: > Hi Michael, > > Pls pick up this one for 2.8. > > Thanks, > -Gonglei > > > > -Original Message- > > From: Gonglei (Arei) > > Sent: Saturday, November 26, 2016 11:08 AM > > To: qemu-devel@nongnu.org > > Cc:

Re: [Qemu-devel] [PATCH v2] target-mips: Implement Loongson 3A processor.

2016-11-30 Thread Richard Henderson
On 11/30/2016 05:46 PM, r...@hev.cc wrote: +static inline void gen_cop2_gslwlrc1(DisasContext *ctx, TCGv base, + int rt, int rs, int offset, int left) +{ +TCGv_i32 t0, t1, t2; + +gen_base_offset_addr(ctx, base, rs, offset); +t1 = tcg_temp_new_i32(); +/*

Re: [Qemu-devel] [PATCH v2] virtio-crypto: fix uninitialized variables

2016-11-30 Thread Gonglei (Arei)
Hi Michael, Pls pick up this one for 2.8. Thanks, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Saturday, November 26, 2016 11:08 AM > To: qemu-devel@nongnu.org > Cc: m...@redhat.com; Gonglei (Arei) > Subject: [PATCH v2] virtio-crypto: fix uninitialized variables > >

Re: [Qemu-devel] [PATCH v7 0/5] IOMMU: intel_iommu support map and unmap notifications

2016-11-30 Thread Tian, Kevin
> From: Aviv B.D > Sent: Monday, November 28, 2016 11:52 PM > > From: "Aviv Ben-David" > > * Advertize Cache Mode capability in iommu cap register. > This capability is controlled by "cache-mode" property of intel-iommu > device. > To enable this option call QEMU with

Re: [Qemu-devel] QEMU 2.8 release approaching

2016-11-30 Thread Michael S. Tsirkin
On Thu, Dec 01, 2016 at 11:25:25AM +0800, Peter Xu wrote: > On Wed, Nov 30, 2016 at 03:42:42PM +, Stefan Hajnoczi wrote: > > Dear QEMU community, > > QEMU 2.8.0-rc3 will be tagged on December 6th. If there are no > > pending issues -rc3 will become the QEMU 2.8 final release on December > >

Re: [Qemu-devel] QEMU 2.8 release approaching

2016-11-30 Thread Peter Xu
On Wed, Nov 30, 2016 at 03:42:42PM +, Stefan Hajnoczi wrote: > Dear QEMU community, > QEMU 2.8.0-rc3 will be tagged on December 6th. If there are no > pending issues -rc3 will become the QEMU 2.8 final release on December > 13th. Let's make this tag a good one! > > If you are currently

Re: [Qemu-devel] [PATCH v2 2/6] hw/i2c: Add a NULL check for i2c slave init callbacks

2016-11-30 Thread Alexey Kardashevskiy
On 30/11/16 16:36, Alastair D'Silva wrote: > From: Alastair D'Silva > > Add a NULL check for i2c slave init callbacks, so that we no longer > need to implement empty init functions. > > Signed-off-by: Alastair D'Silva > --- > hw/arm/pxa2xx.c | 9

Re: [Qemu-devel] [PATCH v2 1/6] arm: Uniquely name imx25 I2C buses.

2016-11-30 Thread Alexey Kardashevskiy
On 01/12/16 11:42, Alastair D'Silva wrote: > On Wed, 2016-11-30 at 09:18 +0100, Cédric Le Goater wrote: >> On 11/30/2016 06:36 AM, Alastair D'Silva wrote: >>> From: Alastair D'Silva >>> >>> The imx25 chip provides 3 i2c buses, but they have all been named >>> "i2c", which

Re: [Qemu-devel] [PATCH v6 1/3] IOMMU: add option to enable VTD_CAP_CM to vIOMMU capility exposoed to guest

2016-11-30 Thread Tian, Kevin
> From: Michael S. Tsirkin > Sent: Tuesday, November 22, 2016 11:10 PM > > On Tue, Nov 22, 2016 at 12:11:21PM +0800, Jason Wang wrote: > > Yes, that's the interesting point. The fault is not guaranteed but > > conditional. And we have similar issue for IEC. > > > > So in conclusion (since I can't

Re: [Qemu-devel] ARM documentation

2016-11-30 Thread G 3
On Nov 30, 2016, at 6:58 PM, Alistair Francis wrote: On Fri, Nov 18, 2016 at 4:53 PM, Programmingkid wrote: On Nov 18, 2016, at 7:31 PM, Programmingkid wrote: On Nov 18, 2016, at 4:10 PM, Alistair Francis wrote: On Fri, Nov 11, 2016 at 8:53 AM, G 3

Re: [Qemu-devel] QEMU 2.8 release approaching

2016-11-30 Thread Gonglei (Arei)
> > Subject: [Qemu-devel] QEMU 2.8 release approaching > > Dear QEMU community, > QEMU 2.8.0-rc3 will be tagged on December 6th. If there are no > pending issues -rc3 will become the QEMU 2.8 final release on December > 13th. Let's make this tag a good one! > > If you are currently looking

Re: [Qemu-devel] [PATCH for-2.8] spapr: fix default DRC state for coldplugged LMBs

2016-11-30 Thread David Gibson
On Wed, Nov 30, 2016 at 05:05:34PM -0600, Michael Roth wrote: > Currently we set the initial isolation/allocation state for DRCs > associated with coldplugged LMBs to ISOLATED/UNUSABLE, > respectively, under the assumption that the guest will move this > state to UNISOLATED/USABLE. > > In fact,

Re: [Qemu-devel] [PATCH] qemu-img: Improve commit invalid base message

2016-11-30 Thread Eric Blake
On 11/30/2016 08:05 PM, Max Reitz wrote: > When trying to invoke qemu-img commit with a base image file name that > is not part of the top image's backing chain, the user receives a rather > plain "Base not found" error message. This is not really helpful because > it does not explain what "not

Re: [Qemu-devel] [PATCH for-2.8] monitor: fix object_del for command-line-created objects

2016-11-30 Thread Eric Blake
On 11/30/2016 05:06 PM, Michael Roth wrote: > Currently objects specified on the command-line are only partially > cleaned up when 'object_del' is issued in either HMP or QMP: the > object itself is fully finalized, but the QemuOpts are not removed. > This results in the following behavior: > >

Re: [Qemu-devel] [PATCH v4 1/1] crypto: add virtio-crypto driver

2016-11-30 Thread Gonglei (Arei)
Hi Stefan, > > On Tue, Nov 29, 2016 at 08:48:14PM +0800, Gonglei wrote: > > diff --git a/drivers/crypto/virtio/virtio_crypto_algs.c > b/drivers/crypto/virtio/virtio_crypto_algs.c > > new file mode 100644 > > index 000..08b077f > > --- /dev/null > > +++

[Qemu-devel] [PATCH 3/3] block: drop remaining legacy aio functions in comment

2016-11-30 Thread Yaowei Bai
Commit 87f68d318222563822b5c6b28192215fc4b4e441 (block: drop aio functions that operate on the main AioContext) drops qemu_aio_wait function references mostly while leaves these behind, clean up them. Signed-off-by: Yaowei Bai --- include/block/aio.h | 4 ++-- 1

[Qemu-devel] [PATCH 1/3] timer: fix misleading comment in timer.h

2016-11-30 Thread Yaowei Bai
It's timer to expire, not clock. Signed-off-by: Yaowei Bai --- include/qemu/timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/timer.h b/include/qemu/timer.h index 309f3d0..c89ed2a 100644 --- a/include/qemu/timer.h +++

[Qemu-devel] [PATCH 2/3] main-loop: update comment for qemu_mutex_lock/unlock_iothread

2016-11-30 Thread Yaowei Bai
Commit 49cf57281b7 (vl: delay thread initialization after daemonization) makes the global mutex is taken after daemonization instead before daemonization by qemu_init_main_loop(). Signed-off-by: Yaowei Bai --- include/qemu/main-loop.h | 4 ++-- 1 file changed, 2

[Qemu-devel] [PATCH] qemu-img: Improve commit invalid base message

2016-11-30 Thread Max Reitz
When trying to invoke qemu-img commit with a base image file name that is not part of the top image's backing chain, the user receives a rather plain "Base not found" error message. This is not really helpful because it does not explain what "not found" means, potentially leaving the user

[Qemu-devel] [PATCH v2] target-mips: Implement Loongson 3A processor.

2016-11-30 Thread r
From: Heiher Signed-off-by: Heiher --- target-mips/helper.c | 4 +- target-mips/mips-defs.h | 5 + target-mips/translate.c | 463 +-- target-mips/translate_init.c | 24 +++ 4 files changed, 481

Re: [Qemu-devel] [PATCH v2 1/6] arm: Uniquely name imx25 I2C buses.

2016-11-30 Thread Alastair D'Silva
On Wed, 2016-11-30 at 09:18 +0100, Cédric Le Goater wrote: > On 11/30/2016 06:36 AM, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > The imx25 chip provides 3 i2c buses, but they have all been named > > "i2c", which makes it difficult to predict which bus a

Re: [Qemu-devel] ARM documentation

2016-11-30 Thread Alistair Francis
On Fri, Nov 18, 2016 at 4:53 PM, Programmingkid wrote: > > On Nov 18, 2016, at 7:31 PM, Programmingkid wrote: > >> >> On Nov 18, 2016, at 4:10 PM, Alistair Francis wrote: >> >>> On Fri, Nov 11, 2016 at 8:53 AM, G 3 wrote: On Nov 11,

[Qemu-devel] [PATCH] monitor: fix object_del for command-line-created objects

2016-11-30 Thread Michael Roth
Currently objects specified on the command-line are only partially cleaned up when 'object_del' is issued in either HMP or QMP: the object itself is fully finalized, but the QemuOpts are not removed. This results in the following behavior: x86_64-softmmu/qemu-system-x86_64 -monitor stdio \

[Qemu-devel] [PATCH for-2.8] spapr: fix default DRC state for coldplugged LMBs

2016-11-30 Thread Michael Roth
Currently we set the initial isolation/allocation state for DRCs associated with coldplugged LMBs to ISOLATED/UNUSABLE, respectively, under the assumption that the guest will move this state to UNISOLATED/USABLE. In fact, this is only the case for LMBs added via hotplug. For coldplugged LMBs, the

Re: [Qemu-devel] Support for using TCG frontend as a library

2016-11-30 Thread Alessandro Di Federico
On Tue, 29 Nov 2016 17:26:59 +0100 Paolo Bonzini wrote: > It's pretty clean! I would rather avoid the duplicate enums, possibly > by automatically generating large parts of ptc.h, but that's pretty > much it. I see that you check that the constants match (that cpp > stuff

Re: [Qemu-devel] [PATCH v4 00/10] tcg mips64 and mips r6 improvements

2016-11-30 Thread James Hogan
Hi Richard, On Wed, Nov 30, 2016 at 12:30:19PM -0800, Richard Henderson wrote: > On 11/30/2016 10:39 AM, Jin Guojie wrote: > > But even Su cannot provide an R6 machine. > > Ok, I guess we will just have to drop the R6 patches for now, until imgtec is > able to provide feedback on them. I'm

Re: [Qemu-devel] [PATCH for-2.8 1/3] migration: alternative way to set instance_id in SaveStateEntry

2016-11-30 Thread Michael Roth
Quoting Michael Roth (2016-11-22 16:58:44) > Quoting David Gibson (2016-11-22 00:15:10) > > On Thu, Nov 17, 2016 at 07:40:25PM -0600, Michael Roth wrote: > > > From: Jianjun Duan > > > > > > Currently migrated Devices are identified with an idstr which is > > >

Re: [Qemu-devel] a suggestion to place *.c hunks last in patches

2016-11-30 Thread Laszlo Ersek
On 11/30/16 21:48, John Snow wrote: > > > On 11/30/2016 07:03 AM, Laszlo Ersek wrote: >> On 11/30/16 11:55, Gerd Hoffmann wrote: >>> On Mi, 2016-11-30 at 11:08 +0100, Laszlo Ersek wrote: Recent git releases support the diff.orderFile permanent setting. >>> >>> Cool. >>> configure

Re: [Qemu-devel] [PATCH 17/36] qtest: Avoid dynamic JSON in ahci-test

2016-11-30 Thread Eric Blake
On 11/30/2016 03:02 PM, John Snow wrote: > > > On 11/30/2016 02:44 PM, Eric Blake wrote: >> As argued elsewhere, it's less code to maintain if we convert >> from a dynamic string passed to qobject_from_jsonv() to instead >> use a hand-built QDict. >> >> Rather than build up a QDict by manual

Re: [Qemu-devel] [PATCH 01/36] pci: Use struct instead of QDict to pass back parameters

2016-11-30 Thread Michael S. Tsirkin
On Wed, Nov 30, 2016 at 01:44:19PM -0600, Eric Blake wrote: > It's simpler to just use a C struct than it is to bundle things > into a QDict in one function just to pull them back out in the > caller. Plus, doing this gets rid of one more user of dynamic > JSON through qobject_from_jsonf(). > >

Re: [Qemu-devel] [PATCH 18/36] qtest: Avoid dynamic JSON in fdc-test

2016-11-30 Thread John Snow
On 11/30/2016 02:44 PM, Eric Blake wrote: > As argued elsewhere, it's less code to maintain if we convert > from a dynamic string passed to qobject_from_jsonv() to instead > use a hand-built QDict. > > Rather than build up a QDict by manual qdict_put*() calls, we > can let QAPI do the work for

Re: [Qemu-devel] [PATCH 07/36] fdc-test: Avoid deprecated 'change' command

2016-11-30 Thread John Snow
On 11/30/2016 02:44 PM, Eric Blake wrote: > Use the preferred blockdev-change-medium command instead. > > Signed-off-by: Eric Blake > --- > tests/fdc-test.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/tests/fdc-test.c b/tests/fdc-test.c >

Re: [Qemu-devel] [PATCH 17/36] qtest: Avoid dynamic JSON in ahci-test

2016-11-30 Thread John Snow
On 11/30/2016 02:44 PM, Eric Blake wrote: > As argued elsewhere, it's less code to maintain if we convert > from a dynamic string passed to qobject_from_jsonv() to instead > use a hand-built QDict. > > Rather than build up a QDict by manual qdict_put*() calls, we > can let QAPI do the work for

Re: [Qemu-devel] a suggestion to place *.c hunks last in patches

2016-11-30 Thread John Snow
On 11/30/2016 07:03 AM, Laszlo Ersek wrote: > On 11/30/16 11:55, Gerd Hoffmann wrote: >> On Mi, 2016-11-30 at 11:08 +0100, Laszlo Ersek wrote: >>> Recent git releases support the diff.orderFile permanent setting. >> >> Cool. >> >>> configure >>> *Makefile* >>> *.json >>> *.txt >>> *.h >>> *.c >>

Re: [Qemu-devel] [PATCH v2 3/5] target-m68k: Inline shifts

2016-11-30 Thread Richard Henderson
On 11/29/2016 03:52 PM, Laurent Vivier wrote: > It doesn't work because we work with word/byte where the bit sign has > been extended to the long word. So in the case of 0 shift, with retrieve > C= and not 0. Ah, right. I wonder if it's better to always zero-extend the inputs for left-shifts, as

Re: [Qemu-devel] [PATCH 00/36] Rip out dynamic JSON parsing

2016-11-30 Thread Paolo Bonzini
- Original Message - > From: "Eric Blake" > To: qemu-devel@nongnu.org > Cc: pbonz...@redhat.com, arm...@redhat.com > Sent: Wednesday, November 30, 2016 8:50:05 PM > Subject: Re: [Qemu-devel] [PATCH 00/36] Rip out dynamic JSON parsing > > On 11/30/2016 01:44 PM, Eric

[Qemu-devel] [PATCH 02/36] qdict: Add convenience helpers for wrapped puts

2016-11-30 Thread Eric Blake
Quite a few users of qdict_put() were manually wrapping a non-QObject. We can make such call-sites shorter, by providing common macros to do the tedious work. Also shorten nearby qdict_put_obj(,,QOBJECT()) sequences. Signed-off-by: Eric Blake --- I'm okay if you want me to

Re: [Qemu-devel] QEMU 2.8 release approaching

2016-11-30 Thread Laszlo Ersek
On 11/30/16 16:42, Stefan Hajnoczi wrote: > Dear QEMU community, > QEMU 2.8.0-rc3 will be tagged on December 6th. If there are no > pending issues -rc3 will become the QEMU 2.8 final release on December > 13th. Let's make this tag a good one! > > If you are currently looking into pending issues

[Qemu-devel] [PATCH 34/36] qapi: Rip out dynamic JSON parser frontend

2016-11-30 Thread Eric Blake
Except for the testsuite, there are no more callers of qobject_from_json[fv](). We have no need to maintain dynamic JSON parsing just for the check-qjson test, so delete the functions. All callers of json_parser_parse() now pass NULL for the varargs parameter; the next patch will clean that up.

Re: [Qemu-devel] Confusion regarding temporaries with branch conditional

2016-11-30 Thread Richard Henderson
On 11/30/2016 10:12 AM, Alex Bennée wrote: > > Richard Henderson writes: > >> On 11/30/2016 08:55 AM, Alex Bennée wrote: >>> >>> Nikunj A Dadhania writes: >>> Hi, I was writing one instruction and hit following issue:

Re: [Qemu-devel] [PATCH v4 00/10] tcg mips64 and mips r6 improvements

2016-11-30 Thread Richard Henderson
On 11/30/2016 10:39 AM, Jin Guojie wrote: > Yesterday I successfully got in touch with a Debian developer from imgtec. > Welcome Su Yunqiang. > V4 patch can be tested on mips64 be hosts now. > The following guests on a mips64 > big-endian host is OK: > - Debian i386 with qemu-system-i386 > -

[Qemu-devel] [PATCH 29/36] qapi: Add qstring_append_printf()

2016-11-30 Thread Eric Blake
Back in commit 764c1ca (Nov 2009), we added qstring_append_int(). However, it did not see any use until commit 190c882 (Jan 2015). Furthermore, it has a rather limited use case - to print anything else, callers still have to format into a temporary buffer, unless we want to introduce an explosion

[Qemu-devel] [PATCH 31/36] qtest: Document calling conventions

2016-11-30 Thread Eric Blake
We have two flavors of vararg usage in qtest; make it clear that qmp() has different semantics than hmp(), and let the compiler enforce that hmp() is used correctly. Since qmp() only accepts exactly "%s" (asserting on misuse, which would be flagged during 'make check'), I figured that it is

[Qemu-devel] [PATCH 32/36] qtest: Avoid dynamic JSON in qom-test

2016-11-30 Thread Eric Blake
As argued elsewhere, it's less code to maintain if we convert from a dynamic string passed to qobject_from_jsonv() to instead use hand-built QDict. Signed-off-by: Eric Blake --- Optional; the "%s" handling in earlier patches is sufficient to handle this without hand-built

[Qemu-devel] [PATCH 35/36] qapi: Rip out dynamic JSON parser escape sequence support

2016-11-30 Thread Eric Blake
Now that there are no callers of dynamic JSON parsing, the lexer does not need to special-case escape sequences. Since the lexer is directly invoked on user-provided input, this changes behavior when a QMP client passes (bad) JSON, from: {'execute':'qmp_capabilities','id':%s} {"error": {"class":

[Qemu-devel] [PATCH 18/36] qtest: Avoid dynamic JSON in fdc-test

2016-11-30 Thread Eric Blake
As argued elsewhere, it's less code to maintain if we convert from a dynamic string passed to qobject_from_jsonv() to instead use a hand-built QDict. Rather than build up a QDict by manual qdict_put*() calls, we can let QAPI do the work for us. The result is more lines of code to initialize the

[Qemu-devel] [PATCH 27/36] qtest: Avoid dynamic JSON in qmp_cmd()

2016-11-30 Thread Eric Blake
When qmp_cmd() was first added, we used a shortcut of a format string of "%p" to pass the QObject intact through the varargs. But now that we have a way to directly invoke strings, we can altogether avoid the no-op trip through the parser by just flattening to a string ourselves. Signed-off-by:

[Qemu-devel] [PATCH 36/36] qapi: Rip out dynamic JSON parser backend

2016-11-30 Thread Eric Blake
Now that there are no callers of dynamic JSON parsing, the parser does not need to handle a va_list argument. Signed-off-by: Eric Blake --- include/qapi/qmp/json-parser.h | 6 +++--- monitor.c | 2 +- qga/main.c | 2 +-

[Qemu-devel] [PATCH 15/36] blockdev: Use simpler QAPI_TO_QOBJECT()

2016-11-30 Thread Eric Blake
Use the new macro to avoid some boilerplate. Signed-off-by: Eric Blake --- blockdev.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/blockdev.c b/blockdev.c index 2802cea..18a3212 100644 --- a/blockdev.c +++ b/blockdev.c @@ -3801,29

[Qemu-devel] [PATCH 33/36] qtest: Avoid dynamic JSON in test-x86-cpuid-compat

2016-11-30 Thread Eric Blake
As argued elsewhere, it's less code to maintain if we convert from a dynamic string passed to qobject_from_jsonv() to instead use hand-built QDict. Signed-off-by: Eric Blake --- Optional; the "%s" handling in earlier patches is sufficient to handle this without hand-built

[Qemu-devel] [PATCH 21/36] qtest: Avoid dynamic JSON in tmp105-test

2016-11-30 Thread Eric Blake
As argued elsewhere, it's less code to maintain if we convert from a dynamic string passed to qobject_from_jsonv() to instead use a hand-built QDict. Signed-off-by: Eric Blake --- tests/tmp105-test.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

  1   2   3   >