All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Aurelien Jarno <aurelien@aurel32.net>, qemu-devel@nongnu.org
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>,
	Alexander Graf <agraf@suse.de>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH 01/10] s390/ioinst: fix IO_INT_WORD_ISC macro
Date: Mon, 15 Jun 2015 20:40:27 +0200	[thread overview]
Message-ID: <557F1C1B.1020002@de.ibm.com> (raw)
In-Reply-To: <1434383829-26451-2-git-send-email-aurelien@aurel32.net>

Am 15.06.2015 um 17:57 schrieb Aurelien Jarno:
> The I/O-Interruption Subclass field corresponds to bits 2 to 5 (BE
> notation) of the Interruption-Identification Word. The value should
> be shift by 27 instead of 24.
> 
> Cc: Christian Borntraeger <borntraeger@de.ibm.com>
> Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
> Cc: Alexander Graf <agraf@suse.de>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> ---
>  target-s390x/ioinst.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target-s390x/ioinst.h b/target-s390x/ioinst.h
> index 203bdba..013cc91 100644
> --- a/target-s390x/ioinst.h
> +++ b/target-s390x/ioinst.h
> @@ -220,7 +220,7 @@ typedef struct IOIntCode {
>  #define IOINST_SCHID_SSID(_schid)  ((_schid & 0x00060000) >> 17)
>  #define IOINST_SCHID_NR(_schid)    (_schid & 0x0000ffff)
> 
> -#define IO_INT_WORD_ISC(_int_word) ((_int_word & 0x38000000) >> 24)
> +#define IO_INT_WORD_ISC(_int_word) ((_int_word & 0x38000000) >> 27)
>  #define ISC_TO_ISC_BITS(_isc)      ((0x80 >> _isc) << 24)
> 
>  #define IO_INT_WORD_AI 0x80000000
> 

Its Connys area of competence, but your change matches the KVM
implementation in the kernel

static u64 int_word_to_isc_bits(u32 int_word)
{
        u8 isc = (int_word & 0x38000000) >> 27;

        return (0x80 >> isc) << 24;
}

so

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>

  reply	other threads:[~2015-06-15 18:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 15:56 [Qemu-devel] [PATCH 00/10] target-s390x: add support for CCW in TCG mode Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 01/10] s390/ioinst: fix IO_INT_WORD_ISC macro Aurelien Jarno
2015-06-15 18:40   ` Christian Borntraeger [this message]
2015-06-15 15:57 ` [Qemu-devel] [PATCH 02/10] s390/ioinst: fix endianness in ioinst_schib_valid Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 03/10] virtio-ccw: disable ioevent bit when ioeventfds are not enabled Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 04/10] target-s390x: fix setcc in TCG mode Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 05/10] target-s390x: correctly initialize ext interrupt queue Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 06/10] target-s390x: initialize I/O " Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 07/10] target-s390x: fix s390_cpu_initial_reset Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 08/10] target-s390x: wire up DIAG IPL in TCG mode Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 09/10] target-s390x: wire up DIAG REIPL " Aurelien Jarno
2015-06-15 15:57 ` [Qemu-devel] [PATCH 10/10] target-s390x: wire up I/O instructions " Aurelien Jarno
2015-06-16 16:19 ` [Qemu-devel] [PATCH 00/10] target-s390x: add support for CCW " Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=557F1C1B.1020002@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=agraf@suse.de \
    --cc=aurelien@aurel32.net \
    --cc=cornelia.huck@de.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.