x86: restore pv_rtc_handler() invocation
authorJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2020 13:46:30 +0000 (15:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2020 13:46:30 +0000 (15:46 +0200)
commitf8fe3c07363d11fc81d8e7382dbcaa357c861569
treea6c42105ab176df254563f087f1981629368b05c
parent1969576661f3e34318e9b0a61a1a38f9a5aee16f
x86: restore pv_rtc_handler() invocation

This was lost when making the logic accessible to PVH Dom0.

While doing so make the access to the global function pointer safe
against races (as noticed by Roger): The only current user wants to be
invoked just once (but can tolerate to be invoked multiple times),
zapping the pointer at that point.

Fixes: 835d8d69d96a ("x86/rtc: provide mediated access to RTC for PVH dom0")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Paul Durrant <paul@xen.org>
xen/arch/x86/hpet.c
xen/arch/x86/time.c