From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Oleksandr Andrushchenko <andr2000@gmail.com>, <jbeulich@suse.com>
Cc: <xen-devel@lists.xenproject.org>, <julien@xen.org>,
<sstabellini@kernel.org>, <oleksandr_tyshchenko@epam.com>,
<volodymyr_babchuk@epam.com>, <george.dunlap@citrix.com>,
<paul@xen.org>, <bertrand.marquis@arm.com>, <rahul.singh@arm.com>,
Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Subject: Re: [PATCH 3/4] vpci: shrink critical section in vpci_{read/write}
Date: Wed, 2 Feb 2022 09:44:57 +0100 [thread overview]
Message-ID: <YfpEiWT0NpYNSAks@Air-de-Roger> (raw)
In-Reply-To: <20220201162508.417008-4-andr2000@gmail.com>
On Tue, Feb 01, 2022 at 06:25:07PM +0200, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
>
> Shrink critical section in vpci_{read/write} as racing calls to
> vpci_{read,write}_hw() shouldn't be a problem. Those are just wrappers
> around pci_conf_{read,write} functions, and the required locking (in
> case of using the IO ports) is already taken care in pci_conf_{read,write}.
>
> Please note, that we anyways split 64bit writes into two 32bit ones
> without taking the lock for the whole duration of the access, so it is
> possible to see a partially updated state as a result of a 64bit write:
> the PCI(e) specification don't seem to specify whether the ECAM is allowed
> to split memory transactions into multiple Configuration Requests and
> whether those could then interleave with requests from a different CPU.
>
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Would like to make sure whether Jan still have concerns about
splitting accesses though. Also since I'm the maintainer we need a
Reviewed-by from someone else.
Thanks, Roger.
next prev parent reply other threads:[~2022-02-02 8:45 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-01 16:25 [PATCH 0/4] PCI devices passthrough pre-req patches Oleksandr Andrushchenko
2022-02-01 16:25 ` [PATCH 1/4] rangeset: add RANGESETF_no_print flag Oleksandr Andrushchenko
2022-02-01 16:25 ` [PATCH 2/4] rangeset: add rangeset_reset helper function Oleksandr Andrushchenko
2022-02-01 17:05 ` Julien Grall
2022-02-01 17:14 ` Oleksandr Andrushchenko
2022-02-01 17:33 ` Julien Grall
2022-02-01 17:39 ` Oleksandr Andrushchenko
2022-02-01 16:25 ` [PATCH 3/4] vpci: shrink critical section in vpci_{read/write} Oleksandr Andrushchenko
2022-02-02 8:44 ` Roger Pau Monné [this message]
2022-02-02 9:05 ` Jan Beulich
2022-02-02 9:38 ` Oleksandr Andrushchenko
2022-02-02 9:45 ` Jan Beulich
2022-02-02 9:49 ` Oleksandr Andrushchenko
2022-02-02 9:49 ` Roger Pau Monné
2022-02-01 16:25 ` [PATCH 4/4] vpci: move lock outside of struct vpci Oleksandr Andrushchenko
2022-02-02 9:22 ` Jan Beulich
2022-02-02 11:03 ` Oleksandr Andrushchenko
2022-02-02 11:14 ` Jan Beulich
2022-02-02 11:26 ` Oleksandr Andrushchenko
2022-02-02 9:45 ` Roger Pau Monné
2022-02-02 10:15 ` Oleksandr Andrushchenko
2022-02-02 8:48 ` [PATCH 0/4] PCI devices passthrough pre-req patches Jan Beulich
2022-02-02 9:03 ` Oleksandr Andrushchenko
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=YfpEiWT0NpYNSAks@Air-de-Roger \
--to=roger.pau@citrix.com \
--cc=andr2000@gmail.com \
--cc=bertrand.marquis@arm.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=oleksandr_andrushchenko@epam.com \
--cc=oleksandr_tyshchenko@epam.com \
--cc=paul@xen.org \
--cc=rahul.singh@arm.com \
--cc=sstabellini@kernel.org \
--cc=volodymyr_babchuk@epam.com \
--cc=xen-devel@lists.xenproject.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 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.