Re: [RFC PATCH V2 01/11] xen/manage: keep track of the on-going suspend mode

From: Boris Ostrovsky
Date: Thu Jan 09 2020 - 18:49:54 EST




On 1/9/20 6:46 PM, Boris Ostrovsky wrote:


On 1/7/20 6:37 PM, Anchal Agarwal wrote:
+
+static int xen_setup_pm_notifier(void)
+{
+ÂÂÂ if (!xen_hvm_domain())
+ÂÂÂÂÂÂÂ return -ENODEV;

ARM guests are also HVM domains. Is it OK for them to register the notifier? The diffstat suggests that you are supporting ARM.

I obviously meant *not* supporting ARM, sorry.

-boris


-boris

+
+ÂÂÂ return register_pm_notifier(&xen_pm_notifier_block);
+}