[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8a9aa0c1-ff20-4d01-8884-590f77a13758@de.ibm.com>
Date: Thu, 31 Oct 2024 16:01:48 +0100
From: Christian Borntraeger <borntraeger@...ibm.com>
To: Claudio Imbrenda <imbrenda@...ux.ibm.com>, linux-kernel@...r.kernel.org
Cc: nsg@...ux.ibm.com, nrb@...ux.ibm.com, frankja@...ux.ibm.com,
seiden@...ux.ibm.com, hca@...ux.ibm.com, agordeev@...ux.ibm.com,
gor@...ux.ibm.com, kvm@...r.kernel.org, linux-s390@...r.kernel.org
Subject: Re: [PATCH v1 1/1] s390/kvm: mask extra bits from program interrupt
code
Am 31.10.24 um 13:03 schrieb Claudio Imbrenda:
> The program interrupt code has some extra bits that are sometimes set
> by hardware for various reasons; those bits should be ignored when the
> program interrupt number is needed for interrupt handling.
>
> Fixes: ce2b276ebe51 ("s390/mm/fault: Handle guest-related program interrupts in KVM")
> Reported-by: Christian Borntraeger <borntraeger@...ux.ibm.com>
> Signed-off-by: Claudio Imbrenda <imbrenda@...ux.ibm.com>
seems to fix my issue:
Tested-by: Christian Borntraeger <borntraeger@...ux.ibm.com>
> ---
> arch/s390/kvm/kvm-s390.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
> index 8b3afda99397..f2d1351f6992 100644
> --- a/arch/s390/kvm/kvm-s390.c
> +++ b/arch/s390/kvm/kvm-s390.c
> @@ -4737,7 +4737,7 @@ static int vcpu_post_run_handle_fault(struct kvm_vcpu *vcpu)
> if (kvm_s390_cur_gmap_fault_is_write())
> flags = FAULT_FLAG_WRITE;
>
> - switch (current->thread.gmap_int_code) {
> + switch (current->thread.gmap_int_code & PGM_INT_CODE_MASK) {
> case 0:
> vcpu->stat.exit_null++;
> break;
Powered by blists - more mailing lists