Re: Strange 2.4.2 boot error

2001-03-02 Thread Michael Mueller
Hi folks and D. Stimits, Summary of discussion taken place so far (for linux-kernel people): D. Stimits noticed he can not boot his kernel from a 1.44MB floppy created with "make bzdisk". This would lead into a register dump. The dump does show the boot code tries to read track 80 of the disk.

Oops in __mark_inode_dirty (2.4.2-pre3)

2001-03-11 Thread Michael Mueller
Hi, had an Oops in __mark_inode_dirty running kernel 2.4.2-pre3 on i386 UP (actually a PII-300). It did happen during the daily cron job. Currently on proc, devpts and ext2 filesystems are used no nfs and the like. The system is still running. So if you need further information mail me or come on

Re: Oops in __mark_inode_dirty (2.4.2-pre3)

2001-03-11 Thread Michael Mueller
Hi, i wrote: > EIP:0010:[__mark_inode_dirty+92/112] > EFLAGS: 00010202 > eax: ebx: cc85b240 ecx: cc85b428 edx: cc85b248 > esi: c15dc200 edi: 0001 ebp: c361dfa4 esp: c361df24 This is a bit-flipper. There is a valid super-block entry at c14dc200. Mich

[PATCH] Using I2O modules with I2O core in kernel

2001-03-12 Thread Michael Mueller
Hi Alan and folks, I got asked why it gives unresolved symbols (and how to fix it) for the I2O modules. During the session I noticed this is due to the fact the I2O core is built into the kernel but the other I2O support built as module. So the quick hack to resolv that problem was adding the mi

[PATCH] Using I2O modules with I2O core in kernel (follow up)

2001-03-12 Thread Michael Mueller
Hi Alan and folks, I wrote: > the EXPORT_SYMBOL within the original source module. This was only done > for the case it would have been compiled as kernel module. The patch is > appended. And again the mysterous lklm problem appeared and I forgot to append the actual patch. Btw. the problem doe

[PATCH v5 00/15] KVM: s390: make use of the GIB

2018-12-19 Thread Michael Mueller
the GISA is not in alert list patch 12/12: during kvm_arch_init() now the return code of kvm_s390_gib_init() is honored. All other patches are unchanged. Michael Mueller (15): KVM: s390: unregister debug feature on failing arch init KVM: s390: coding style issue

[PATCH v5 01/15] KVM: s390: unregister debug feature on failing arch init

2018-12-19 Thread Michael Mueller
Make sure the debug feature and its allocated resources get released upon unsuccessful architecture initialization. A related indication of the issue will be reported as kernel message. Signed-off-by: Michael Mueller Reviewed-by: Cornelia Huck Reviewed-by: Pierre Morel Reviewed-by: David

[PATCH v5 06/15] KVM: s390: remove prefix kvm_s390_gisa_ from static inline functions

2018-12-19 Thread Michael Mueller
This will shorten the length of code lines. All GISA related static inline functions are local to interrupt.c Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/s390/kvm/interrupt.c b

[PATCH v5 02/15] KVM: s390: coding style issue kvm_s390_gisa_init/clear()

2018-12-19 Thread Michael Mueller
The change hepls to reduce line length and icreases code readability. Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index fcb55b02990e

[PATCH v5 10/15] KVM: s390: add functions to (un)register GISC with GISA

2018-12-19 Thread Michael Mueller
support. Signed-off-by: Michael Mueller --- arch/s390/include/asm/kvm_host.h | 9 ++ arch/s390/kvm/interrupt.c| 66 2 files changed, 75 insertions(+) diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index

[PATCH v5 14/15] KVM: s390: add and wire function gib_alert_irq_handler()

2018-12-19 Thread Michael Mueller
... Signed-off-by: Michael Mueller --- arch/s390/include/asm/irq.h | 1 + arch/s390/include/asm/isc.h | 1 + arch/s390/kernel/irq.c | 1 + arch/s390/kvm/interrupt.c | 36 ++-- 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/arch/s390

[PATCH v5 15/15] KVM: s390: start using the GIB

2018-12-19 Thread Michael Mueller
By initializing the GIB, it will be used by the kvm host. Signed-off-by: Michael Mueller --- arch/s390/kvm/kvm-s390.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 2d10e175862c..777c8a87d81c 100644 --- a/arch

[PATCH v5 11/15] KVM: s390: restore IAM in get_ipm() when IPM is clean

2018-12-19 Thread Michael Mueller
: IRQ_FLAG_IAM: When set, the IAM is restored if no ISC bit is set in the IPM, i.e. no new airqs are pending. The test and restore operations are done atomically. Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 34

[PATCH v5 13/15] KVM: s390: add function process_gib_alert_list()

2018-12-19 Thread Michael Mueller
an interruption of that class is observed. Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 140 ++ 1 file changed, 140 insertions(+) diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm/interrupt.c index 48a93f5e5333..03e7ba4f215a

[PATCH v5 12/15] KVM: s390: do not restore IAM immediately before SIE entry

2018-12-19 Thread Michael Mueller
The IAM shall no be restored when deliverable interruptions are delivered to vcpus by means of the PSW swap mechanism. That would trigger the GIB alert millicode although we know that SIE will be able to handle the pending interruption on entry. Signed-off-by: Michael Mueller --- arch/s390/kvm

[PATCH v5 09/15] KVM: s390: add kvm reference to struct sie_page2

2018-12-19 Thread Michael Mueller
Adding the kvm reference to struct sie_page2 will allow to determine the kvm a given gisa belongs to: container_of(gisa, struct sie_page2, gisa)->kvm This functionality will be required to process a gisa in gib alert interruption context. Signed-off-by: Michael Mueller Reviewed-by: Pie

[PATCH v5 07/15] s390/cio: add function chsc_sgib()

2018-12-19 Thread Michael Mueller
-off-by: Michael Mueller Reviewed-by: Sebastian Ott Reviewed-by: Pierre Morel Reviewed-by: Christian Borntraeger Acked-by: Halil Pasic Acked-by: Janosch Frank Acked-by: Cornelia Huck --- arch/s390/include/asm/cio.h | 1 + drivers/s390/cio/chsc.c | 37

[PATCH v5 08/15] KVM: s390: add the GIB and its related life-cyle functions

2018-12-19 Thread Michael Mueller
related code will be done in an upcoming patch of this series. Signed-off-by: Michael Mueller Reviewed-by: Janosch Frank Reviewed-by: Christian Borntraeger --- arch/s390/include/asm/kvm_host.h | 10 + arch/s390/kvm/interrupt.c| 44 arch

[PATCH v5 05/15] KVM: s390: unify pending_irqs() and pending_irqs_no_gisa()

2018-12-19 Thread Michael Mueller
: IRQ_MASK_ALL: include all types IRQ_MASK_NO_GISA: include all types but GISA Examples: pending_irqs(vcpu, IRQ_MASK_ALL) pending_irqs(vcpu, IRQ_MASK_NO_GISA) There will be more irq flags with upcoming patches. Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 33

[PATCH v5 04/15] KVM: s390: use pending_irqs_no_gisa() where appropriate

2018-12-19 Thread Michael Mueller
Interruption types that are not represented in GISA shall use pending_irqs_no_gisa() to test pending interruptions. Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/s390/kvm/interrupt.c b/arch/s390/kvm

[PATCH v5 03/15] KVM: s390: factor out nullify_gisa()

2018-12-19 Thread Michael Mueller
This function will be used by the GISA init and the GISA clear operation. Thus it gets factored out here. Signed-off-by: Michael Mueller Reviewed-by: Pierre Morel Reviewed-by: Janosch Frank Reviewed-by: Cornelia Huck Reviewed-by: David Hildenbrand --- arch/s390/kvm/interrupt.c | 11

Re: [PATCH v5 01/15] KVM: s390: unregister debug feature on failing arch init

2018-12-19 Thread Michael Mueller
On 19.12.18 21:10, Cornelia Huck wrote: On Wed, 19 Dec 2018 20:17:42 +0100 Michael Mueller wrote: Make sure the debug feature and its allocated resources get released upon unsuccessful architecture initialization. A related indication of the issue will be reported as kernel message

Re: [PATCH v5 05/15] KVM: s390: unify pending_irqs() and pending_irqs_no_gisa()

2018-12-20 Thread Michael Mueller
On 19.12.18 20:17, Michael Mueller wrote: -static inline unsigned long pending_irqs(struct kvm_vcpu *vcpu) -{ - return pending_irqs_no_gisa(vcpu) | - kvm_s390_gisa_get_ipm(vcpu->kvm->arch.gisa) << IRQ_PEND_IO_ISC_7; + if (irq_flags &

Re: [PATCH v5 05/15] KVM: s390: unify pending_irqs() and pending_irqs_no_gisa()

2018-12-20 Thread Michael Mueller
On 20.12.18 12:06, Cornelia Huck wrote: On Wed, 19 Dec 2018 20:17:46 +0100 Michael Mueller wrote: Use a single function with parameter irq_flags to differentiate between cases. New irq flag: IRQ_FLAG_LOCAL: include vcpu local interruptions pending IRQ_FLAG_FLOATING: include vcpu

Re: [PATCH v5 05/15] KVM: s390: unify pending_irqs() and pending_irqs_no_gisa()

2018-12-20 Thread Michael Mueller
On 20.12.18 13:21, Cornelia Huck wrote: On Thu, 20 Dec 2018 12:49:56 +0100 Michael Mueller wrote: On 20.12.18 12:06, Cornelia Huck wrote: On Wed, 19 Dec 2018 20:17:46 +0100 Michael Mueller wrote: Use a single function with parameter irq_flags to differentiate between cases. New irq

Re: [PATCH v5 10/15] KVM: s390: add functions to (un)register GISC with GISA

2018-12-20 Thread Michael Mueller
On 19.12.18 20:17, Michael Mueller wrote: Add the IAM (Interruption Alert Mask) to the architecture specific kvm struct. This mask in the GISA is used to define for which ISC a GIB alert can be issued. The functions kvm_s390_gisc_register() and kvm_s390_gisc_unregister() are used to (un

Re: [PATCH v5 06/15] KVM: s390: remove prefix kvm_s390_gisa_ from static inline functions

2018-12-20 Thread Michael Mueller
On 20.12.18 13:24, Cornelia Huck wrote: On Wed, 19 Dec 2018 20:17:47 +0100 Michael Mueller wrote: This will shorten the length of code lines. All GISA related static inline functions are local to interrupt.c Signed-off-by: Michael Mueller --- arch/s390/kvm/interrupt.c | 26

Re: [PATCH v5 05/15] KVM: s390: unify pending_irqs() and pending_irqs_no_gisa()

2018-12-20 Thread Michael Mueller
On 20.12.18 16:43, pierre morel wrote: Le 12/20/18 à 13:33, Michael Mueller a écrit : On 20.12.18 13:21, Cornelia Huck wrote: On Thu, 20 Dec 2018 12:49:56 +0100 Michael Mueller wrote: On 20.12.18 12:06, Cornelia Huck wrote: On Wed, 19 Dec 2018 20:17:46 +0100 Michael Mueller wrote

Re: [PATCH v5 02/15] KVM: s390: coding style issue kvm_s390_gisa_init/clear()

2019-01-07 Thread Michael Mueller
On 02.01.19 17:50, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: The change hepls to reduce line length and icreases code readability. Signed-off-by: Michael Mueller ---   arch/s390/kvm/interrupt.c | 20 ++--   1 file changed, 10 insertions(+), 10 deletions

Re: [PATCH v5 08/15] KVM: s390: add the GIB and its related life-cyle functions

2019-01-07 Thread Michael Mueller
On 03.01.19 10:49, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: The Guest Information Block (GIB) links the GISA of all guests that have adapter interrupts pending. These interrupts cannot be delivered because no vcpu of these guests is currently running in SIE context

Re: [PATCH v5 10/15] KVM: s390: add functions to (un)register GISC with GISA

2019-01-07 Thread Michael Mueller
On 04.01.19 14:19, Cornelia Huck wrote: On Wed, 2 Jan 2019 18:29:00 +0100 Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: Add the IAM (Interruption Alert Mask) to the architecture specific kvm struct. This mask in the GISA is used to define for which ISC a GIB alert can be

Re: [PATCH v5 12/15] KVM: s390: do not restore IAM immediately before SIE entry

2019-01-07 Thread Michael Mueller
On 03.01.19 16:00, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: The IAM shall no be restored when deliverable interruptions are delivered to vcpus by means of the PSW swap mechanism. That would trigger the GIB alert millicode although we know that SIE will be able to

Re: [PATCH v5 11/15] KVM: s390: restore IAM in get_ipm() when IPM is clean

2019-01-07 Thread Michael Mueller
On 03.01.19 16:06, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: The patch adds the parameter irq_flags and allows to restore the Interruption Alert Mask (IAM) in the GISA atomically while guaranteeing the IPM is clean. The function returns the IPM of the GISA. If the

Re: [PATCH v5 13/15] KVM: s390: add function process_gib_alert_list()

2019-01-07 Thread Michael Mueller
On 03.01.19 15:43, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: This function processes the Gib Alert List (GAL). It is required to run when either a gib alert interruption has been received or a gisa that is in the alert list is cleared or dropped. The GAL is build up by

Re: [PATCH v5 13/15] KVM: s390: add function process_gib_alert_list()

2019-01-07 Thread Michael Mueller
On 03.01.19 15:43, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: This function processes the Gib Alert List (GAL). It is required to run when either a gib alert interruption has been received or a gisa that is in the alert list is cleared or dropped. The GAL is build up by

Re: [PATCH v5 11/15] KVM: s390: restore IAM in get_ipm() when IPM is clean

2019-01-08 Thread Michael Mueller
On 07.01.19 00:32, Halil Pasic wrote: On Wed, 19 Dec 2018 20:17:52 +0100 Michael Mueller wrote: The patch adds the parameter irq_flags and allows to restore the Interruption Alert Mask (IAM) in the GISA atomically while guaranteeing the IPM is clean. The function returns the IPM of the

Re: [PATCH v5 15/15] KVM: s390: start using the GIB

2019-01-08 Thread Michael Mueller
On 02.01.19 18:45, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: By initializing the GIB, it will be used by the kvm host. Signed-off-by: Michael Mueller ---   arch/s390/kvm/kvm-s390.c | 8 +++-   1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/s390

Re: [PATCH v5 14/15] KVM: s390: add and wire function gib_alert_irq_handler()

2019-01-08 Thread Michael Mueller
On 03.01.19 16:16, Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: The patch implements a handler for GIB alert interruptions on the host. Its task is to alert guests that interrupts are pending for them. A GIB alert interrupt statistic counter is added as well: $ cat /proc

Re: [PATCH v5 10/15] KVM: s390: add functions to (un)register GISC with GISA

2019-01-08 Thread Michael Mueller
On 08.01.19 11:34, Cornelia Huck wrote: On Mon, 7 Jan 2019 18:38:02 +0100 Michael Mueller wrote: On 04.01.19 14:19, Cornelia Huck wrote: On Wed, 2 Jan 2019 18:29:00 +0100 Pierre Morel wrote: On 19/12/2018 20:17, Michael Mueller wrote: Add the IAM (Interruption Alert Mask) to the

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-04-02 Thread Michael Mueller
On Wed, 1 Apr 2015 20:05:24 -0300 Eduardo Habkost wrote: > > > > > > If you don't want to encode that knowledge in libvirt or other > > > management software for s390, it looks like you need something like a > > > "stable-abi-safe" field on CpuDefinitionInfo? > > > > Exactly that fulfills the

[PATCH v4 01/15] Introduce stub routine cpu_desc_avail

2015-03-30 Thread Michael Mueller
evaluating the runtime context instead of putting static cpu model information at display. Signed-off-by: Michael Mueller Reviewed-by: Thomas Huth --- include/qemu-common.h | 2 ++ stubs/Makefile.objs| 1 + stubs/cpu-desc-avail.c | 6 ++ vl.c | 2 +- 4 files changed

[PATCH v4 03/15] target-s390x: Generate facility defines per cpu model

2015-03-30 Thread Michael Mueller
qemu/foobuild/s390x-softmmu' CCgen-facilities cc1: error: -I/usr/include/pixman-1: No such file or directory [-Werror] cc1: all warnings being treated as errors make[1]: *** [/gen-facilities] Error 1 make[1]: Leaving directory `/home/mimu/REPO/qemu/foobuild/s390x-softmmu' make: *

[PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-30 Thread Michael Mueller
tion: - s390_cpu_models_used(), returns true if S390 cpu models are in use Signed-off-by: Michael Mueller --- include/sysemu/arch_init.h | 1 + qapi-schema.json | 35 +++ qmp-commands.hx| 6 ++ qmp.c | 5 + stub

[PATCH v4 10/15] target-s390x: Prepare accelerator during cpu object realization

2015-03-30 Thread Michael Mueller
This patch implements routine s390_cpu_model_init(). It is called by the realize function during instantiation of an cpu object. Its task is to initialize the current accelerator with the properties of the selected processor model. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.c

[PATCH v4 13/15] target-s390x: Extend QMP command query-cpu-definitions

2015-03-30 Thread Michael Mueller
ot;name":"2827-ga1","runnable":true,"is-default":false}, ... {"name":"2064-ga1","runnable":true,"is-default":false} ] } The request arguments are optional and if omitted only the cpu model na

[PATCH v4 14/15] target-s390x: Introduce facility test routine

2015-03-30 Thread Michael Mueller
The patch introduces routine s390_facility_test() which allows to verify a specific facility bit is set. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.c | 29 + target-s390x/cpu-models.h | 1 + 2 files changed, 30 insertions(+) diff --git a/target

[PATCH v4 15/15] target-s390x: Enable cpu model usage

2015-03-30 Thread Michael Mueller
This patch enables QEMU to instantiate S390 CPUs with cpu model types. Signed-off-by: Michael Mueller --- hw/s390x/s390-virtio.c | 12 +++- target-s390x/helper.c | 9 ++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390

[PATCH v4 12/15] Add optional parameters to QMP command query-cpu-definitions

2015-03-30 Thread Michael Mueller
The patch adds optional parameters to the QMP command query-cpu-definitions. Thus the signature of routine arch_query_cpu_definitions needs to be changed for the stub function and all target implementations: target-arm target-i386 target-ppc target-s390 Signed-off-by: Michael Mueller

[PATCH v4 05/15] target-s390x: Define cpu model specific facility lists

2015-03-30 Thread Michael Mueller
current hosting machine model. The also defined qemu side facility mask allows to implement and enable facilities in QEMU land. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.c | 12 target-s390x/cpu-models.h | 8 target-s390x/cpu.c| 1 + 3 files changed

[PATCH v4 06/15] target-s390x: Add cpu model alias definition routines

2015-03-30 Thread Michael Mueller
This patch implements the infrastructure to dynamically add cpu model aliases. Signed-off-by: Michael Mueller Reviewed-by: Cornelia Huck --- target-s390x/cpu-models.c | 89 +++ target-s390x/cpu-models.h | 11 ++ target-s390x/cpu.c| 1

[PATCH v4 09/15] target-s390x: Add cpu class initialization routines

2015-03-30 Thread Michael Mueller
u_aliases(), adds cu model aliases - s390_cpu_classes_initialized(), test if cpu classes have been initialized - s390_fac_list_mask_by_machine(), returns facility list mask by machine - s390_current_fac_list_mask(), returns facility list mask of current machine Signed-off-by: Michael Mueller -

[PATCH v4 00/15] s390x cpu model implementation

2015-03-30 Thread Michael Mueller
finitions" dropped in commit message (13/16) - comment for AccelCpuInfo type updated (13/16) - routine s390_facility_test() factored out (15/16) v1-v2: - QEMU-side facility list mask introduced: this allows to enable guest facilities that are handled by instruction interception handler

[PATCH v4 08/15] target-s390x: Add KVM VM attribute interface for cpu models

2015-03-30 Thread Michael Mueller
trace point instrumentation. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.h | 34 target-s390x/kvm.c| 79 +++ trace-events | 3 ++ 3 files changed, 116 insertions(+) diff --git a/target-s390x/cpu

[PATCH v4 04/15] target-s390x: Introduce cpu models

2015-03-30 Thread Michael Mueller
. Furthermore it extends the existing S390CPUClass by model related properties. Signed-off-by: Michael Mueller Reviewed-by: Thomas Huth --- target-s390x/Makefile.objs | 1 + target-s390x/cpu-models.c | 77 ++ target-s390x/cpu-models.h | 72

[PATCH v4 02/15] target-s390x: Introduce cpu facilities

2015-03-30 Thread Michael Mueller
The patch introduces S390 CPU facility bit numbers and names as well as the architectural facility size limit in bytes. Signed-off-by: Michael Mueller --- target-s390x/cpu-facilities.h | 86 +++ 1 file changed, 86 insertions(+) create mode 100644 target

[PATCH v4 07/15] target-s390x: Update linux-headers/asm-s390/kvm.h

2015-03-30 Thread Michael Mueller
Signed-off-by: Michael Mueller --- linux-headers/asm-s390/kvm.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/linux-headers/asm-s390/kvm.h b/linux-headers/asm-s390/kvm.h index c5a93eb..bfe6925 100644 --- a/linux-headers/asm-s390/kvm.h +++ b/linux-headers

Re: [PATCH v4 07/15] target-s390x: Update linux-headers/asm-s390/kvm.h

2015-03-31 Thread Michael Mueller
On Mon, 30 Mar 2015 21:36:22 +0200 Christian Borntraeger wrote: > Am 30.03.2015 um 16:28 schrieb Michael Mueller: > > Signed-off-by: Michael Mueller > > --- > > linux-headers/asm-s390/kvm.h | 18 +- > > 1 file changed, 9 insertions(+), 9 deletion

Re: [Qemu-devel] [PATCH v4 12/15] Add optional parameters to QMP command query-cpu-definitions

2015-03-31 Thread Michael Mueller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 30 Mar 2015 14:28:01 -0600 Eric Blake wrote: > On 03/30/2015 08:28 AM, Michael Mueller wrote: > > The patch adds optional parameters to the QMP command query-cpu-definitions. > > Thus the signature of routine arch_query_cpu_de

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-31 Thread Michael Mueller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 30 Mar 2015 14:19:27 -0600 Eric Blake wrote: > On 03/30/2015 08:28 AM, Michael Mueller wrote: > > This patch implements a new QMP request named 'query-cpu-model'. > > It returns the cpu model of cpu 0 an

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-31 Thread Michael Mueller
On Mon, 30 Mar 2015 16:50:20 -0300 Eduardo Habkost wrote: Hello Eduardo, > On Mon, Mar 30, 2015 at 04:28:24PM +0200, Michael Mueller wrote: > [...] > > diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c > > index 829945d..1698b52 100644 > > --- a/target-s390x/cpu.

Re: [Qemu-devel] [PATCH v4 10/15] target-s390x: Prepare accelerator during cpu object realization

2015-03-31 Thread Michael Mueller
On Mon, 30 Mar 2015 16:33:51 -0300 Eduardo Habkost wrote: > On Mon, Mar 30, 2015 at 04:28:23PM +0200, Michael Mueller wrote: > > This patch implements routine s390_cpu_model_init(). It is called by the > > realize function during instantiation of an cpu object. Its task is to >

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-31 Thread Michael Mueller
On Mon, 30 Mar 2015 17:17:21 -0300 Eduardo Habkost wrote: > On Mon, Mar 30, 2015 at 04:28:24PM +0200, Michael Mueller wrote: > > This patch implements a new QMP request named 'query-cpu-model'. > > It returns the cpu model of cpu 0 and its backing accelerator. > >

Re: [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-03-31 Thread Michael Mueller
On Tue, 31 Mar 2015 15:35:26 -0300 Eduardo Habkost wrote: > On Mon, Mar 30, 2015 at 04:28:24PM +0200, Michael Mueller wrote: > > This patch implements a new QMP request named 'query-cpu-model'. > > It returns the cpu model of cpu 0 and its backing accelerator. > >

Re: [Qemu-devel] [PATCH v4 12/15] Add optional parameters to QMP command query-cpu-definitions

2015-03-31 Thread Michael Mueller
On Tue, 31 Mar 2015 16:46:56 -0300 Eduardo Habkost wrote: > On Mon, Mar 30, 2015 at 04:28:25PM +0200, Michael Mueller wrote: > [...] > > ## > > # @query-cpu-definitions: > > # > > # Return a list of supported virtual CPU definitions > > # > > +# @

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-04-01 Thread Michael Mueller
On Wed, 1 Apr 2015 10:01:13 -0300 Eduardo Habkost wrote: > On Tue, Mar 31, 2015 at 10:09:09PM +0200, Michael Mueller wrote: > > On Tue, 31 Mar 2015 15:35:26 -0300 > > Eduardo Habkost wrote: > > > > > On Mon, Mar 30, 2015 at 04:28:24PM +0200, Michael Mueller wrote:

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-04-01 Thread Michael Mueller
On Wed, 1 Apr 2015 13:59:05 -0300 Eduardo Habkost wrote: > > Not directly invalid as "-cpu none" will be the same as omitting the -cpu > > option. > > KVM will setup the vcpu properties withou any QEMU control to whatever the > > hosting > > machine and the kvm kernel code offers. That will all

Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model

2015-04-01 Thread Michael Mueller
On Wed, 1 Apr 2015 21:05:31 +0200 Michael Mueller wrote: > And cpu model "none" just means that QEMU does not manage the cpu model. > That's also > the reason why I initially returned an empty "[]" model and not "none". This > somewhat > co

Re: [Qemu-devel] [PATCH v5 06/17] target-s390x: Introduce S390 CPU facilities

2015-04-27 Thread Michael Mueller
On Mon, 27 Apr 2015 10:11:37 +0200 Christian Borntraeger wrote: > Am 13.04.2015 um 15:56 schrieb Michael Mueller: > [...] > > +FAC_TRANSACTIONAL_EXE = 73, > > +/* > > + * The store-hypervisor-information facility #74 is > > + * z/V

Re: [Qemu-devel] [PATCH v5 09/17] target-s390x: Define S390 CPU model specific facility lists

2015-04-27 Thread Michael Mueller
On Mon, 27 Apr 2015 10:11:40 +0200 Christian Borntraeger wrote: > Am 13.04.2015 um 15:56 schrieb Michael Mueller: > > --- a/target-s390x/cpu-models.c > > +++ b/target-s390x/cpu-models.c > > > @@ -76,3 +87,4 @@ S390_PROC_DEF("2827-ga1", CPU_S390_2827_G

Re: [Qemu-devel] [PATCH v5 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models

2015-04-27 Thread Michael Mueller
On Mon, 27 Apr 2015 10:15:47 +0200 Christian Borntraeger wrote: > Am 13.04.2015 um 15:56 schrieb Michael Mueller: > [...] > > +static int cpu_model_get(KVMState *s, uint64_t attr, uint64_t addr) > > +{ > > +int rc = -ENOSYS; > > +struct kvm_device_attr de

Re: [Qemu-devel] [PATCH v5 15/17] target-s390x: Extend arch specific QMP command query-cpu-definitions

2015-04-27 Thread Michael Mueller
On Mon, 27 Apr 2015 10:11:29 +0200 Christian Borntraeger wrote: > > This patch implements the QMP command 'query-cpu-definitions' in the S390 > > context. The command returns a list of cpu definitions in the current host > > context. A runnable and migratable cpu model has the related attributes

Re: [Qemu-devel] [PATCH v5 06/17] target-s390x: Introduce S390 CPU facilities

2015-04-27 Thread Michael Mueller
On Mon, 27 Apr 2015 12:14:19 +0200 Christian Borntraeger wrote: > +/* z/VM-specific, see: SC24-6179-05 page 953) */ > +FAC_STHYI = 74, picked -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vg

Re: [Qemu-devel] [PATCH v5 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models

2015-04-27 Thread Michael Mueller
On Mon, 27 Apr 2015 12:52:54 +0200 Christian Borntraeger wrote: > Am 27.04.2015 um 11:43 schrieb Michael Mueller: > > On Mon, 27 Apr 2015 10:15:47 +0200 > > Christian Borntraeger wrote: > > > >> Am 13.04.2015 um 15:56 schrieb Michael Mueller: > >> [...] &

Re: [Qemu-devel] [PATCH v5 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models

2015-04-27 Thread Michael Mueller
On Mon, 27 Apr 2015 14:19:13 +0200 Cornelia Huck wrote: > > > >> Would it make sense to do the cast here > > > > > > > > cpu_model_get/set() is used to handle both attributes, > > > > KVM_S390_VM_CPU_MACHINE and KVM_S390_VM_CPU_PROCESSOR. > > > > Both require a different type in the signat

[PATCH v5 01/17] Introduce stub routine cpu_desc_avail

2015-04-13 Thread Michael Mueller
evaluating the runtime context instead of putting static cpu model information at display. Signed-off-by: Michael Mueller Reviewed-by: Thomas Huth --- include/qemu-common.h | 2 ++ stubs/Makefile.objs| 1 + stubs/cpu-desc-avail.c | 6 ++ vl.c | 2 +- 4 files changed

[PATCH v5 04/17] Extend HMP command info cpus to display accelerator id and model name

2015-04-13 Thread Michael Mueller
The HMP command info cpus now displays the CPU model name and the backing accelerator if part of the CPUState. (qemu) info cpus * CPU #0: (halted) model=2827-ga2 accel=kvm thread_id=1679 Signed-off-by: Michael Mueller --- hmp.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/hmp.c b

[PATCH v5 03/17] Extend QMP command query-cpus to return accelerator id and model name

2015-04-13 Thread Michael Mueller
"model": "2827-ga2", "halted": false, "accel": "kvm", "thread_id": 31917 }, ... } Signed-off-by: Michael Mueller --- cpus.c | 4 qapi-schema.json | 7 ++- 2 files changed, 10 insertions(+),

[PATCH v5 14/17] target-s390x: Initialize S390 CPU model name in CPUState

2015-04-13 Thread Michael Mueller
The cpu model name now gets initialized during CPU instance initialization. Signed-off-by: Michael Mueller --- target-s390x/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c index 65dee3e..771acbd 100644 --- a/target-s390x/cpu.c +++ b/target-s390x

[PATCH v5 17/17] target-s390x: Enable S390 CPU model usage

2015-04-13 Thread Michael Mueller
This patch enables QEMU to instantiate S390 CPUs with CPU model types. Signed-off-by: Michael Mueller --- hw/s390x/s390-virtio.c | 12 +++- target-s390x/helper.c | 9 ++--- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390

[PATCH v5 13/17] target-s390x: Prepare accelerator during S390 CPU object realization

2015-04-13 Thread Michael Mueller
This patch implements routine s390_cpu_model_init(). It is called by the realize function during instantiation of an CPU object. Its task is to initialize the current accelerator with the properties of the selected processor model. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.c

[PATCH v5 12/17] target-s390x: Add S390 CPU class initialization routines

2015-04-13 Thread Michael Mueller
u_aliases(), adds cu model aliases - s390_cpu_classes_initialized(), test if CPU classes have been initialized - s390_fac_list_mask_by_machine(), returns facility list mask by machine - s390_current_fac_list_mask(), returns facility list mask of current machine Signed-off-by: Michael Mueller -

[PATCH v5 05/17] Add optional parameters to QMP command query-cpu-definitions

2015-04-13 Thread Michael Mueller
The patch adds optional parameters to the QMP command query-cpu-definitions. Thus the signature of routine arch_query_cpu_definitions needs to be changed for the stub function and all target implementations: target-arm target-i386 target-ppc target-s390 Signed-off-by: Michael Mueller

[PATCH v5 07/17] target-s390x: Generate facility defines per S390 CPU model

2015-04-13 Thread Michael Mueller
T_CPU_S390_SIZE_UINT64 %PRIu32 FAC_LIST_CPU_S390_MASK_QEMU 0x%016PRIx64,0x%016PRIx64,... FAC_LIST_CPU_S390__GA 0x%016PRIx64,0x%016PRIx64,... Signed-off-by: Michael Mueller --- Makefile.target | 2 +- rules.mak | 1 + target-s390x/Makefile.objs| 20 ++ targe

[PATCH v5 16/17] target-s390x: Introduce S390 CPU facility test routine

2015-04-13 Thread Michael Mueller
The patch introduces routine s390_facility_test() which allows to verify if a specific facility bit is set. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.c | 29 + target-s390x/cpu-models.h | 1 + 2 files changed, 30 insertions(+) diff --git a/target

[PATCH v5 10/17] target-s390x: Add S390 CPU model alias definition routines

2015-04-13 Thread Michael Mueller
This patch implements the infrastructure to dynamically add CPU model aliases. Signed-off-by: Michael Mueller Reviewed-by: Cornelia Huck --- target-s390x/cpu-models.c | 82 +++ target-s390x/cpu-models.h | 13 target-s390x/cpu.c| 1

[PATCH v5 11/17] target-s390x: Add KVM VM attribute interface for S390 CPU models

2015-04-13 Thread Michael Mueller
trace point instrumentation. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.h | 36 - target-s390x/kvm.c| 79 +++ trace-events | 3 ++ 3 files changed, 117 insertions(+), 1 deletion(-) diff --git a

[PATCH v5 00/17] s390x cpu model implementation

2015-04-13 Thread Michael Mueller
"query-cpu-definitions" dropped in commit message (13/16) - comment for AccelCpuInfo type updated (13/16) - routine s390_facility_test() factored out (15/16) v1-v2: - QEMU-side facility list mask introduced: this allows to enable guest facilities that are handled by instruction

[PATCH v5 09/17] target-s390x: Define S390 CPU model specific facility lists

2015-04-13 Thread Michael Mueller
current hosting machine model. The also defined qemu side facility mask allows to implement and enable facilities in QEMU land. Signed-off-by: Michael Mueller --- target-s390x/cpu-models.c | 12 target-s390x/cpu-models.h | 8 target-s390x/cpu.c| 1 + 3 files changed

[PATCH v5 15/17] target-s390x: Extend arch specific QMP command query-cpu-definitions

2015-04-13 Thread Michael Mueller
rue }, ... { "name": "none", "runnable": true } ] } The request arguments are optional and if omitted lead to different answers. Eventually only the CPU model none gets returned as runnable and as default ... {

[PATCH v5 06/17] target-s390x: Introduce S390 CPU facilities

2015-04-13 Thread Michael Mueller
The patch introduces S390 CPU facility bit numbers and names as well as the architectural facility size limit in bytes. Signed-off-by: Michael Mueller --- target-s390x/cpu-facilities.h | 86 +++ 1 file changed, 86 insertions(+) create mode 100644 target

[PATCH v5 02/17] Add accelerator id and model name to CPUState

2015-04-13 Thread Michael Mueller
The patch defines ids per accelerator and adds the accel_id and the model_name to the CPUState. The accel_id is initialized by common code, the model name needs to be initialized by target specific code. Signed-off-by: Michael Mueller --- include/qom/cpu.h | 5 + qapi-schema.json | 9

[PATCH v5 08/17] target-s390x: Introduce S390 CPU models

2015-04-13 Thread Michael Mueller
. Furthermore it extends S390CPUClass by model related properties. Signed-off-by: Michael Mueller --- target-s390x/Makefile.objs | 1 + target-s390x/cpu-models.c | 78 ++ target-s390x/cpu-models.h | 72

Re: [PATCH v7 13/15] KVM: s390: add gib_alert_irq_handler()

2019-02-05 Thread Michael Mueller
On 05.02.19 12:38, Pierre Morel wrote: On 31/01/2019 09:52, Michael Mueller wrote: The patch implements a handler for GIB alert interruptions on the host. Its task is to alert guests that interrupts are pending for them. A GIB alert interrupt statistic counter is added as well: $ cat /proc

Re: [PATCH v6 11/13] KVM: s390: add functions to (un)register GISC with GISA

2019-01-28 Thread Michael Mueller
On 28.01.19 16:45, Pierre Morel wrote: On 24/01/2019 13:59, Michael Mueller wrote: Add the Interruption Alert Mask (IAM) to the architecture specific kvm struct. This mask in the GISA is used to define for which ISC a GIB alert will be issued. The functions kvm_s390_gisc_register() and

3.14-rc4 blocks on LVM init

2014-02-25 Thread Michael Mueller
Hi, with 3.14-rc4 my box does not finish initializing the LVM array. It hangs within the call to rw_header() on line 632 of dm-log.c. See backtrace at end. Please excuse typos within - had to type it from a screen shot. The problem seems to be introduced by the commit 003b5c5719f159f4f4bf97

Re: 3.14-rc4 blocks on LVM init

2014-02-25 Thread Michael Mueller
Hi Mike, you wrote: You need these two 3.14-rc fixes that are staged in linux-next (via linux-dm.git's 'for-next' branch): Thanks for the fast reply. Did pull in the whole branch 'linux-next' from the repo now. It is back to working. Michael -- To unsubscribe from this list: send the line

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 13:55:41 +0200 Alexander Graf wrote: > > On 13.05.14 16:58, Michael Mueller wrote: > > The patch introduces facilities and cpu_ids per virtual machine. > > Different virtual machines may want to expose different facilities and > > cpu ids to the guest

Re: [PATCH v1 RFC 0/6] KVM: s390: cpu model implementation

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 13:32:09 +0200 Christian Borntraeger wrote: > On 13/05/14 16:58, Michael Mueller wrote: > > The proposed patch set implements S390 cpu model support in kvm. A cpu > > model is defined by a triple comprizing the cpu type , the cpu facility > > set and

Re: [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 14:08:24 +0200 Alexander Graf wrote: > > On 13.05.14 16:58, Michael Mueller wrote: > > This patch enables cpu model support in kvm/s390 via the vm attribute > > interface. > > > > During KVM initialization, the host properties cpuid, IBC value

Re: [Qemu-devel] [PATCH v1 RFC 3/6] KVM: s390: use facilities and cpu_id per KVM

2014-05-16 Thread Michael Mueller
On Fri, 16 May 2014 16:49:37 +0200 Alexander Graf wrote: > > On 16.05.14 16:46, Michael Mueller wrote: > > On Fri, 16 May 2014 13:55:41 +0200 > > Alexander Graf wrote: > > > >> On 13.05.14 16:58, Michael Mueller wrote: > >>> The patch introduc

  1   2   3   >