[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 1/2] x86: restore pv_rtc_handler() invocation
- To: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Mon, 20 Jul 2020 16:28:24 +0100
- Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Paul Durrant <paul@xxxxxxx>
- Delivery-date: Mon, 20 Jul 2020 15:28:57 +0000
- Ironport-sdr: E/KP/Tzve8NqTkwIRxA2gIUDMfLET6xYCGtDmozU41iJ0P858ydhiU13QJiNDAel4nTItjGPAv KSz1dy+D2e3eX1peVF+JbYKBj1iAluMtVqWEi3wK0xXO2mna0xq70n4oIfJkMiCPmr46Hret+T udbdAZmDP2lq4LMEQgw8rD/WKPac5TcUH1prg0XF4wgqB1x5bpCkPWFpxK+kFNC7ObtMgeihiS A+jAqIZO3jOeF3uTRYMFCKB0EKJBgEg+UrqbtZi3b0Ud5y4wvNSsdYZshGSSChv7D23znxLVe0 ZGI=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 16/07/2020 11:06, Jan Beulich wrote:
> ACCESS_ONCE() guarantees single access, but doesn't guarantee that
> the compiler wouldn't split this single access into multiple insns.
ACCESS_ONCE() does guarantee single accesses for any natural integer size.
There is a section about this specifically in Linux's
memory-barriers.txt, and this isn't the first time I've pointed it out...
~Andrew
|