[Qemu-devel] [PATCH v9 2/2] target: arm: Add support for VCPU event states

2018-09-15 Thread Dongjiu Geng
This patch extends the qemu-kvm state sync logic with support for KVM_GET/SET_VCPU_EVENTS, giving access to yet missing SError exception. And also it can support the exception state migration. The SError exception states include SError pending state and ESR value, the kvm_put/get_vcpu_events() wil

[Qemu-devel] [PATCH v9 1/2] linux-headers: Update to kernel mainline commit 815f0ddb3

2018-09-15 Thread Dongjiu Geng
Update our kernel headers to mainline commit 815f0ddb346c196018d4d8f8f55c12b83da1de3f (include/linux/compiler*.h: make compiler-*.h mutually exclusive) Signed-off-by: Dongjiu Geng --- include/standard-headers/linux/input.h | 9 + linux-headers/asm-arm/kvm.h| 13 +

[Qemu-devel] [PATCH v9 0/2] add support for VCPU event states

2018-09-15 Thread Dongjiu Geng
Support KVM_GET/SET_VCPU_EVENTS to get/set the SError exception state, and support the state migration. Now the VCPU event only includes the SError exception status, it can be extended if needed. When do migration, If source machine has serror pending, the target machine is also needed to pend th

[Qemu-devel] [Bug 1792193] Re: AMD Athlon(tm) X2 Dual-Core QL-64 bug

2018-09-15 Thread Kirill Bugaev
I can't do bisect, but I have installed qemu version 3.0.50 (v3.0.0-614-g19b599f766-dirty) from git and this works fine. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1792193 Title: AMD Athlon(tm)

[Qemu-devel] [PATCH v2] qemu-img.c: add help for each command

2018-09-15 Thread John Arbuckle
Add the ability for the user to display help for a certain command. Example: qemu-img create --help What is printed is all the options available to this command and an example. Signed-off-by: John Arbuckle --- v2 changes: Removed block of string comparison code for each command. Added a help_fu

[Qemu-devel] [RFC PATCH 00/13] target/arm: Derive cpu id regs from features

2018-09-15 Thread Richard Henderson
This is something we talked about in the context of enabling sve in system mode. We don't want to replicate info between these two locations. I'm not 100% happy with this, thus the RFC. In particular, there are several places in id_isar0, id_isar2, and id_isar4 that expose micro- architectural d

[Qemu-devel] [PATCH 05/13] target/arm: Derive id_isar3 from features

2018-09-15 Thread Richard Henderson
??? The assertion does fire for the old cpus; they may be existing bugs. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 36 1 file changed, 36 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 379d6a08a4..2b199845fc 100644 --- a/t

[Qemu-devel] [PATCH 03/13] target/arm: Derive id_isar1 from features

2018-09-15 Thread Richard Henderson
??? The assertion does fire for quite a lot of cpus, ??? but quite a few of them appear to be existing bugs. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/target/arm/cpu.c b/target/a

[Qemu-devel] [PATCH 02/13] target/arm: Derive id_isar0 from features

2018-09-15 Thread Richard Henderson
??? Test with -machine none -cpu foo. ??? The assertion does fire for quite a lot of cpus, ??? but quite a few of them appear to be existing bugs. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 45 + 1 file changed, 45 insertions(+) diff --gi

[Qemu-devel] [PATCH 01/13] target/arm: Add ARM_FEATURE_SWP

2018-09-15 Thread Richard Henderson
These insns have been removed from the ISA, but are also not present on some cpus with V7VE. Signed-off-by: Richard Henderson --- target/arm/cpu.h | 1 + linux-user/elfload.c | 3 ++- target/arm/cpu.c | 10 ++ target/arm/translate.c | 4 4 files changed, 17 insertio

[Qemu-devel] [PATCH 08/13] target/arm: Derive id_pfr0 from features

2018-09-15 Thread Richard Henderson
??? The assertion does fire for old cpus; they may be existing bugs. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index c227044946..0151c278e8 100644 --- a/target/arm/cpu

[Qemu-devel] [PATCH 06/13] target/arm: Derive id_isar4 from features

2018-09-15 Thread Richard Henderson
??? The assertion does fire for the old cpus; they may be existing bugs. ??? Willfully provide a value for SWP_frac that matches our implementation. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 44 1 file changed, 44 insertions(+) diff --g

[Qemu-devel] [PATCH 04/13] target/arm: Derive id_isar2 from features

2018-09-15 Thread Richard Henderson
??? The assertion does fire for the old cpus; they may be existing bugs. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index a477e722af..379d6a08a4 100644 --- a

[Qemu-devel] [PATCH 09/13] target/arm: Derive id_pfr1 from features

2018-09-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/cpu.c | 29 + 1 file changed, 29 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 0151c278e8..4fb3e0a9ea 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -992,6 +992,31 @@ static uint32_t resol

[Qemu-devel] [PATCH 13/13] target/arm: Remove assertions from resolve_id_regs

2018-09-15 Thread Richard Henderson
This is a prerequisite to removing the now-redundant initializations from within the individual cpus. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 41 +++-- 1 file changed, 7 insertions(+), 34 deletions(-) diff --git a/target/arm/cpu.c b/target/arm

[Qemu-devel] [PATCH 11/13] target/arm: Derive id_aa64isar1 from features

2018-09-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/cpu.c | 20 1 file changed, 20 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 1c51b9f631..a9724f3bb1 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1062,6 +1062,24 @@ static uint64_t resolve_id_a

[Qemu-devel] [PATCH 07/13] target/arm: Derive id_isar5 and id_isar6 from features

2018-09-15 Thread Richard Henderson
Unlike the other id_sar registers, these contain post-v8.0 features that are not included with any existing cpu models. They would be enabled by -cpu max when we enable them for system mode. Signed-off-by: Richard Henderson --- target/arm/cpu.c | 46 +

[Qemu-devel] [PATCH 12/13] target/arm: Derive id_aa64pfr0 from features

2018-09-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/cpu.c | 29 + 1 file changed, 29 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index a9724f3bb1..2ec71104c9 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1080,6 +1080,31 @@ static uint64_t res

[Qemu-devel] [PATCH 10/13] target/arm: Derive id_aa64isar0 from features

2018-09-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/cpu.c | 49 1 file changed, 49 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 4fb3e0a9ea..1c51b9f631 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -1017,6 +1017,51 @@

[Qemu-devel] Freeze / spin in virtio blk...flatview do translate

2018-09-15 Thread Frank Yang via Qemu-devel
Hi qemu-devel, So we're using QEMU 2.12 for recent Android Emulator canaryies, and we're seeing a lot of hangs on mac in flatview_translate in qemu 2.12. What would be some pointers for diagnosing excessive I/O? Especially, metrics to see if a system is on the verge of getting into main loop spi

Re: [Qemu-devel] [PATCH 2/2] KVM: i386: Add support for save and restore nested state

2018-09-15 Thread Liran Alon
> On 14 Sep 2018, at 18:08, Paolo Bonzini wrote: > > On 14/09/2018 16:31, Liran Alon wrote: >>> There is still a problem, however, in that the same input stream would >>> be parsed differently depending on the kernel version. In particular, >>> if in the future the maximum nested state size g

Re: [Qemu-devel] [PATCH 2/2] KVM: i386: Add support for save and restore nested state

2018-09-15 Thread Liran Alon
> On 15 Sep 2018, at 23:48, Liran Alon wrote: > > > >> On 14 Sep 2018, at 18:08, Paolo Bonzini wrote: >> >> On 14/09/2018 16:31, Liran Alon wrote: There is still a problem, however, in that the same input stream would be parsed differently depending on the kernel version. In par

Re: [Qemu-devel] Freeze / spin in virtio blk...flatview do translate

2018-09-15 Thread Frank Yang via Qemu-devel
I notice at least two commits in upstream QEMU that might impact this: https://github.com/qemu/qemu/commit/ce3a9eaff4e5f29514dba35a001894cb7a238e07#diff-8bfe2ea13d8c6dab17a555f300ac2f66 https://github.com/qemu/qemu/commit/45641dba38f6f44c3ea44c2d1c37b31619276ce3#diff-a9288ea1a561573c7d3036de7d7048

Re: [Qemu-devel] [PATCH 01/13] target/arm: Add ARM_FEATURE_SWP

2018-09-15 Thread Peter Maydell
On 15 September 2018 at 17:17, Richard Henderson wrote: > These insns have been removed from the ISA, but are also not > present on some cpus with V7VE. > > Signed-off-by: Richard Henderson > --- > target/arm/cpu.h | 1 + > linux-user/elfload.c | 3 ++- > target/arm/cpu.c | 10 ++