From: Cornelia Huck <cohuck@redhat.com>
To: linux-s390@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH v7 05/22] s390/zcrypt: AP bus support for alternate driver(s)
Date: Mon, 30 Jul 2018 12:01:15 +0000 [thread overview]
Message-ID: <20180730140115.47306702.cohuck@redhat.com> (raw)
In-Reply-To: <20180727095344.5f2049ca.cohuck@redhat.com>
On Fri, 27 Jul 2018 09:53:44 +0200
Cornelia Huck <cohuck@redhat.com> wrote:
> On Thu, 26 Jul 2018 21:54:12 +0200
> Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> > For the first shot the two masks located in sysfs at
> > /sys/bus/ap/apmask and /sys/bus/ap/aqmask are read-only and by default
> > all APQNs belong to the ap bus and the default drivers:
> >
> > cat /sys/bus/ap/apmask
> > 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
> > cat /sys/bus/ap/aqmask
> > 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
> >
> > The only way to change these masks is currently via kernel command
> > line, for example like:
> >
> > ... ap.apmask=0xffff ap.aqmask=0x40
> >
> > would give these two pools:
> >
> > default drivers pool: adapter 0 - 15, domain 1
> > alternate drivers pool: adapter 0 - 15, all but domain 1
> > adapter 16-255, all domains
>
> This looks a bit non-intuitive to me. Is there an easy way to determine
> the masks if all I know is the list of apqns I want to have in the
> default respectively alternate drivers pool?
What about an interface based on ranges and exclusion (like e.g.
cio_ignore) instead?
ap.apmask=0x0-0xf ap.aqmask=0x1 for the example above
and you could do something like ap.apmask=all,!0xf to specify all
adapters but adapter 15.
For the output, we can rely on tooling to get something that is easily
readable, but requiring users to fiddle with bitmasks is error-prone,
even if it is a good representation internally.
parent reply other threads:[~2018-07-30 12:01 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20180727095344.5f2049ca.cohuck@redhat.com>]
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=20180730140115.47306702.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
/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