From: Eric Farman <farman@linux.ibm.com>
To: Nico Boehr <nrb@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Heiko Carstens <hca@linux.ibm.com>,
Peter Oberparleiter <oberpar@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Vineeth Vijayan <vneethv@linux.ibm.com>
Cc: Matthew Rosato <mjrosato@linux.ibm.com>,
Halil Pasic <pasic@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
linux-s390@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH 1/2] vfio-ccw: sort out physical vs virtual pointers usage
Date: Thu, 10 Nov 2022 09:28:51 -0500 [thread overview]
Message-ID: <906322b1c53dfef15d8f5141f7af15a480dc434e.camel@linux.ibm.com> (raw)
In-Reply-To: <166807228813.13521.7185648742806016994@t14-nrb>
On Thu, 2022-11-10 at 10:24 +0100, Nico Boehr wrote:
> Quoting Eric Farman (2022-11-09 21:21:56)
> > From: Alexander Gordeev <agordeev@linux.ibm.com>
> >
> > The ORB is a construct that is sent to the real hardware,
> > so should contain a physical address in its interrupt
> > parameter field. Let's clarify that.
>
> Maybe I don't get it, but I think the commit description is
> inaccurate. The PoP
> says (p. 15-25):
>
> > Bits 0-31 of word 0 are
> > preserved unmodified in the subchannel until
> > replaced by a subsequent START SUBCHANNEL or
> > MODIFY SUBCHANNEL instruction. These bits are
> > placed in word 1 of the interruption code when an I/O
> > interruption occurs and when an interruption request
> > is cleared by the execution of TEST PENDING
> > INTERRUPTION.
>
> So the hardware actually doesn't care what kind of address this is.
> Rather, the
> CIO driver expects the intparam to be a physical address - probably
> so it fits
> 32 bits -, see do_cio_interrupt.
Right, it doesn't even need to be an address; we could write 0xdeadbeef
if we wanted, so long as that could be decoded by the driver on the
interrupt side. I really just wanted to point out that it was sent to
the channel, not that the channel (or anything else on the hardware
side) used it. What about this?
The ORB's interrupt parameter field is stored unmodified into the
interruption code when an I/O interrupt occurs. As this reflects
a real device, let's store the physical address of the subchannel
struct so it can be used when processing an interrupt.
next prev parent reply other threads:[~2022-11-10 14:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 20:21 [PATCH 0/2] s390/vfio-ccw: addressing fixes Eric Farman
2022-11-09 20:21 ` [PATCH 1/2] vfio-ccw: sort out physical vs virtual pointers usage Eric Farman
2022-11-09 22:20 ` Matthew Rosato
2022-11-10 2:15 ` Eric Farman
2022-11-10 9:24 ` Nico Boehr
2022-11-10 14:28 ` Eric Farman [this message]
2022-11-10 16:26 ` Nico Boehr
2022-11-09 20:21 ` [PATCH 2/2] vfio/ccw: identify CCW data addresses as physical Eric Farman
2022-11-10 8:53 ` Nico Boehr
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=906322b1c53dfef15d8f5141f7af15a480dc434e.camel@linux.ibm.com \
--to=farman@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=mjrosato@linux.ibm.com \
--cc=nrb@linux.ibm.com \
--cc=oberpar@linux.ibm.com \
--cc=pasic@linux.ibm.com \
--cc=svens@linux.ibm.com \
--cc=vneethv@linux.ibm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox