From nobody Mon Jan 10 16:11:22 2022 X-Original-To: freebsd-xen@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F18C0193A9D1 for ; Mon, 10 Jan 2022 16:11:40 +0000 (UTC) (envelope-from roger.pau@citrix.com) Received: from esa4.hc3370-68.iphmx.com (esa4.hc3370-68.iphmx.com [216.71.155.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.hc3370-68.iphmx.com", Issuer "HydrantID SSL CA G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JXf300K2vz4TcK for ; Mon, 10 Jan 2022 16:11:39 +0000 (UTC) (envelope-from roger.pau@citrix.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1641831099; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=emibXei8aB86ADsa/e1z2J4Z57jr+oaZiNoiQGScGrA=; b=PNuXPWO1S7WhFiAX8cRcKRlcnl/GJ3XXt4YBCmUFkGpZlq0Nnm+cGMyP gldgLasE0t4DAwWcqJ/82d240vkEOgjB8mVsTDbGU6NrORATfvZ1cdrPD Jf5dY6ICZfA27zOU9erXuS8cBTTzvkk3W/D9rQkqtA0QlVBM/16xg+CF5 c=; IronPort-SDR: 41F1rey9m55AMLTJDKVfTihMSjLwSrOvjTC5RCmfH3AJovlcN2ubKG3bgl3CYlVnYFv/yJJI6y h/y6/mMgUgAgutuKq8iDsLdE9f2HI4gkgvxxYHkcusSdmlBfO9/yCAX9p//8Stwb+Dz/3YKYgk VRZHAifeaus2y1rt2+tvIswzOI5EI0AdNZynrfwnm5wal1fsrs8cVJf1071fMYnGQuz40HAS8F lLO93zw9M07VL+nF7QN92/eU995rwB10sOkOQmwo3pcS/O5HkEzWZMC2XDdb3J3xe14Pmz7dsM O0+xLm3zMsgOBxDQKK+mzcLk X-SBRS: 5.2 X-MesageID: 63784019 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:zErUOKJFa1OOu29qFE+RH5IlxSXFcZb7ZxGr2PjKsXjdYENS3mBRy GAYUW3TOPeONGbxeoh+Poq29k8Bu5TQx9NmQAplqX01Q3x08seUXt7xwmUcns+xwm8vaGo9s q3yv/GZdJhcokcxIn5BC5C5xZVG/fjgqoHUVaiUakideSc+EH170Us6w7Zj6mJVqYPR7z2l6 IuaT/L3YDdJ6xYsWo7Dw/vewP/HlK2aVAIw5jTSV9gS1LPtvyB94KYkDbOwNxPFrrx8RYZWc QphIIaRpQs19z91Yj+sfy2SnkciGtY+NiDW4pZatjTLbrGvaUXe345iXMfwZ3u7hB2sjst27 olrs6aSaj0sDLDqwuUGCytHRnQW0a1uoNcrIFC6uM2XiUbHb2Ht07NlC0Re0Y8wo7gtRzsUr LpBdW5LPkvra+GemdpXTsF2gcsuNo/zNZ43sXB81zDJS/0hRPgvRo2UvoAIgG9p16iiG97fV tgyWRNVNyjNahZpJ3gLJLEwpOyn0yyXnzpw9wvO+PtfD3Lo5AJr3bXnK9aQatGMbctPk0uSv W6A+H72ajkWL8y3wyGJ6WLqiPWnoM/gcNtMTvvirKcs2QDNgDxIYPELabelidyokUmYB/RZE W43wC8csI5o9VfzfMaoCnVUv0W4lhIbXtNRFcgz5weM1rfY7m6lO4QUctJSQId47ZFrHFTGw nfMxoq0XmI37NV5XFrAru/8kN+kBcQCwYbujwcgRBBN3dTsqZpbYvnnHoc6S/7dYjEY9FjNL 9G2QMoW2u97YS0jjfzTEbX7b9SE/cGhoukdvFW/Y45dxlklDLNJnqTxgbQh0d5OLZyCUn6Kt 2Uels6V4YgmVM/RzXPQG7hWQeH4vZ5p1QEwZ3Y0RvHNEBz3qhaekX14umkidC+FzO5ZEdMWX KMjkVwIv8ICVJdbRaR2f5iwG6wXIVvITrzYugTvRoMWOPBZLVbflAk3PBL49z2zzCAEzP9uU b/GIZfEJStLUsxPkWvpL9rxJJd2nEjSM0uJG8Cip/lmuJLDDEOopUAtawrRPrtnvfLd8G04M b93bqO39vmWa8WnCgH/+o8PN1Eaa389AJH9sctMceCfZAFhHQkc5zX5mNvNoqRpwPZYkPnm5 Ha4VhMKwVbznySfew6LdmpiePXkWpMm9SA3OiklPFCJ3Xk/YNnwsPdDJsVvJbR3pvZ+yfNUT uUef5nSCPp4VTmaqS8WaoPwrdI+eU3z1x6OJSesfBM2Y4VkG17S4tbhcwa2rHsOAyO7uNEQu bql0g+HE5MPSx47VJTdae61zkP3tn8YwbogU0zNK9hVWUPt7Ik1dHCh0q5pe5kBcEyRyCGb2 gCaBQYjidPM+4JlosPUga2krpuyF7csFERtAGSGv629MjPX/zT/zNYYAvqIZz3USEj95L6mO bdO1/j5PfAKwARKvo57H+o5xK4y/YKy9bpTzwAiF3TXdVW7TLhnJyDej8VIs6RMwJ5fuBe3B R3TqoULZ+3RNZO3CkMVKSokcv+HhKMdlTTl5PgoJFn3uX1s972dXEQOZxSBhUSx9leu3F/JF Qv5hPMr1g== IronPort-HdrOrdr: A9a23:+KrXf6uTBuXpLmbwDnqqXjif7skDjNV00zEX/kB9WHVpm6yj+v xGUs566faUskd0ZJhEo7q90ca7Lk80maQa3WBzB8bGYOCFghrKEGgK1+KLrwEIcxeUygc379 YDT0ERMrzN5VgRt7eG3OG7eexQvOVuJsqT9JjjJ3QGd3AVV0l5hT0JbTpyiidNNXJ77ZxSLu v72uN34wCOVF4wdcqBCnwMT4H41qf2fMKPW29+O/Y/gjP+9Q+V1A== X-IronPort-AV: E=Sophos;i="5.88,277,1635220800"; d="scan'208";a="63784019" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jrXR+itCIqB1YwH0vBQEE+MOQQutzB5GWLCMO2jYJ1WDgWzv3TYLNE+2Fn0xYYibLsEZF7isgIqR5bmVed0fMv8DwSX49ur7B/IlT6YRjiFzrQ46Or8ueCvvpVXxgxfQDjBrdMLpDuk2G8ESl+AXYXrwESMo6YzEFFhenvUKpDsqmPworHG0uAzhGaphoOY00IyLZzuRpY8hv9A1W2w5SuQm5fhGzozk+oFK3zTtftKwqRo6tZ+D9PKdjiLEh1aUDwSJts7b5vM21KilfHB/WTTd63Bfai4bspeJQ7LcaZFzMrKC0E21+Ho2mc34PWzcs9JshaFHBhhtHbjzpWxvwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QnQdq0NLTqvFwmfYujQ+BkP5An9N2PB1ypt52c06A00=; b=dxuoRyNLAuNrQixeEclJLNr9pJuvEGHXcwWcEps/QLhkqFy60YbTVx5i+SstETv+44QdVMkEgy3eXiZqjGzi6VmjzCZnhF0tEXPuEN9IiF3aIe4fPOiq2TZbauWFCygsydzL2jGbSP5oGdt5ySLbS4+RzrQjK1ERxoNeZyh2iaamPNID/9WdLc/x1Xq2IB3517/OY99ywJKYm87rraQ1rsiz2I5ExIya0qw5KF8CUF7mUFogjbV87ZMH9ltj19xy/POj5b94ucjPjbTwHF/9rzH3RZuTzdsuwTHHhrDzPTm5sLv3gr2O/Ijn/++zCq2X4HcnwFhLU8IOUojmyC640g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QnQdq0NLTqvFwmfYujQ+BkP5An9N2PB1ypt52c06A00=; b=sXZ2/mriC84Ha6OckP/DwjzJg7pJLTe+6q6GWpAPngRz3+114SZKK9GL8iuv+Ml6IJDIhYNNaOKRaWZAQbE7VdTpcDMmLaqTO9JvipkGB6sY4zc7reK5nApiKZCC9dICHWTj/RNLSPBDq2j6tiKUsi32xxV82AJwV+MUBBNmUMo= Date: Mon, 10 Jan 2022 17:11:22 +0100 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: Freddy DISSAUX CC: Subject: Re: Can't shutdown FreeBSD domU Message-ID: References: <20211204093337.GA69642@blade.bsdsx.fr> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: MR2P264CA0108.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:33::24) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-xen List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-xen@freebsd.org X-BeenThere: freebsd-xen@freebsd.org MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f79a575b-ca9d-4887-e9d0-08d9d453dbe6 X-MS-TrafficTypeDiagnostic: DM6PR03MB4603:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hQ6p99KGFC1QR0YMglYAXBAyRe17EBk6t27SccXP7p1yiI1thvdp8/Get3bTa3+rmyuARJMWggCLGuzTGZYVP2lfBtwRjfDEyaxiQWlq8hEyZywZikt85bSxonxjabyFVGw7IrubM+0aWHXfXAPt8pZzDxel2QW/ILVfY8E7qLYFpHIrfquKNdZrir+0VODBM74uBBvjWhEa9ZmEDDRPTPzTdk0ngV66ZrAoLJcJURFLxjthHCmeYsIjlYPApFUVt8hjd3ydKgke4JRSlQXwVijSBoxYpS78uzql/2BHXxYHmlx6E22tpQTE6RK9LNgFnPRqsKS0+HY2TIT+rvByX8ZLC4EDFLW3+/aQ27AD818s91a0IRZYTzPjjoy0utOz6kLg0P0R+jI0vyfe5Zk8pGous1a+AQMKNLUjbuycNcsAzjNXXxt+LlIn561nb2aNrF3Zgb8eZ/z0yNNGdsu/SSgSMe7+osp90MybWBH+eDB8+x3wkyBtqRXZsgwllOpvX3PawpefyCrvYwLOQn7aXaj03H0vXMmAITDYQSHK5E1Om4qU4QwexMXeS7XPWNQuRzHp8Qa2pH9k4lDMt6ldjC3F4KUbHRrvkr2gnrO+/A0sBTAdNhld8dERXnlQv8gL78yojcqiTKf2J5Vp5ifkcLQYjzUoP7vbb/RkwIpYMLzM3xoeVINXfa0BMBhNnwSxl5kQFJVbBV05q81dayylgMwd7KpCkIoqslldjQg3MMmG/+tT9VwvjWd9lH1c/3k0W3We46YpqnkKJp/Avip2cDKKOLACIFyBJ0X6nR1p6Yg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(7916004)(4636009)(366004)(6506007)(2906002)(85182001)(316002)(9686003)(6512007)(66476007)(6486002)(6666004)(508600001)(6916009)(86362001)(26005)(19273905006)(66556008)(186003)(966005)(5660300002)(3480700007)(8676002)(83380400001)(38100700002)(33716001)(66946007)(82960400001)(8936002)(4326008)(562404015)(563064011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c0tjSG9MQ2c2TDNDNlRDUkYyYWI1N2JXdEE3OUptUFVTSllFcWVGdWlzNGRh?= =?utf-8?B?THo2K0VKM1c2U01HTDVvYjcySmJjSzJDUWt2d3NQUlIwcllaQnJTRThOTVcr?= =?utf-8?B?aDdtcjJNdGxuQkswRXJ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XBR?= =?utf-8?B?N1lJRWd4YjJBRmVZVDh6NjZ0NGh0SGdJR2J3TlpkdklEYlVGSERDWjNvNy9E?= =?utf-8?B?T0NkSW9tZ2dzaTBHM2dWSXVFR1Q0MVpUakVYMzVrM2N4enBsQlBMWW9JQWF5?= =?utf-8?B?QlBLcFBObE9KeEJBV28ycmFxdXhvNDloaURZQjZPNGFmaWpVZmFHbjJrNnMv?= =?utf-8?B?UVo5emszZUNPMFFyL2xjYXFNV1QrU28vL1NXMDRndzhES0dyOGJXWWRqQkxH?= =?utf-8?Q?GCxy15cPOp/uOyhSXi2RjxQ=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: f79a575b-ca9d-4887-e9d0-08d9d453dbe6 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2022 16:11:28.7446 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vP6r/qzCEq1lcQFVzJ8vnc3oKEP8dh6LHdaX+PtuAasUD+0QmR+wghu4DVYEwQc7EQXzy6ejDU1WjTbCX62qXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4603 X-OriginatorOrg: citrix.com X-Rspamd-Queue-Id: 4JXf300K2vz4TcK X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=citrix.com header.s=securemail header.b=PNuXPWO1; dkim=pass header.d=citrix.onmicrosoft.com header.s=selector2-citrix-onmicrosoft-com header.b="sXZ2/mri"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=reject) header.from=citrix.com; spf=pass (mx1.freebsd.org: domain of roger.pau@citrix.com designates 216.71.155.144 as permitted sender) smtp.mailfrom=roger.pau@citrix.com X-Spamd-Result: default: False [-5.57 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[citrix.com:s=securemail,citrix.onmicrosoft.com:s=selector2-citrix-onmicrosoft-com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+exists:216.71.155.144.spf.hc3370-68.iphmx.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DWL_DNSWL_LOW(-1.00)[citrix.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[citrix.com:+,citrix.onmicrosoft.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[citrix.com,reject]; RCVD_IN_DNSWL_MED(-0.20)[216.71.155.144:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.62)[subject]; ASN(0.00)[asn:16417, ipnet:216.71.154.0/23, country:US]; MID_RHS_NOT_FQDN(0.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1] X-ThisMailContainsUnwantedMimeParts: N On Mon, Jan 10, 2022 at 04:58:40PM +0100, Roger Pau Monné wrote: > On Sat, Dec 04, 2021 at 10:33:37AM +0100, Freddy DISSAUX wrote: > > Hello, > > > > My dom0 is a alpine linux 3.15 with xen 4.15: > > > > dsx@xen>cat /etc/alpine-release > > 3.15.0 > > dsx@xen>apk info xen > > xen-4.15.1-r2 description: > > Xen hypervisor > > > > xen-4.15.1-r2 webpage: > > https://www.xenproject.org/ > > > > xen-4.15.1-r2 installed size: > > 262 MiB > > > > All domU are in pvh mode. I can shutdown domU alpine linux, domU netbsd > > but not domU freebsd: > > > > dsx@xen>doas xl create al30.cfg ; sleep 60 ; doas xl list ; doas xl shutdown --wait al30 ; sleep 2; doas xl list > > Parsing config from al30.cfg > > Name ID Mem VCPUsStateTime(s) > > Domain-0 0 1022 4 r----- 2581.2 > > al30 66 1023 1 -b---- 2.1 > > Shutting down domain 66 > > Waiting for 1 domains > > Domain 66 has been shut down, reason code 0 > > Name ID Mem VCPUsStateTime(s) > > Domain-0 0 1022 4 r----- 2581.7 > > dsx@xen>doas xl create nbsd20.cfg ; sleep 60 ; doas xl list ; doas xl shutdown --wait nbsd20 ; sleep 2 ; doas xl list > > Parsing config from nbsd20.cfg > > WARNING: msr_relaxed will be removed in future versions. > > If it fixes an issue you are having please report to xen-devel@lists.xenproject.org. > > Name ID Mem VCPUsStateTime(s) > > Domain-0 0 1022 4 r----- 2583.2 > > nbsd20 67 2047 2 -b---- 2.2 > > Shutting down domain 67 > > Waiting for 1 domains > > Domain 67 has been shut down, reason code 0 > > Name ID Mem VCPUsStateTime(s) > > Domain-0 0 1022 4 r----- 2583.7 > > dsx@xen>doas xl create fbsd40.cfg ; sleep 60 ; doas xl list ; doas xl shutdown --wait fbsd40 ; sleep 2 ; doas xl list > > Parsing config from fbsd40.cfg > > Name ID Mem VCPUsStateTime(s) > > Domain-0 0 1019 4 r----- 2584.7 > > fbsd40 68 2048 2 -b---- 4.5 > > Shutting down domain 68 > > Waiting for 1 domains > > ^C > > dsx@xen>doas xl list > > Name ID Mem VCPUsStateTime(s) > > Domain-0 0 1019 4 r----- 2585.0 > > fbsd40 68 2048 2 r----- 170.6 > > > > > > FreebSD domU config: > > > > name = "fbsd40" > > maxvcpus = 2 > > memory = 2048 > > vif = [ 'bridge=br40' ] > > type = "pvh" > > kernel = "/home/dsx/kernel" > > extra = 'vfs.root.mountfrom=ufs:ufs/rootfs,boot_verbose=1' > > disk = [ 'format=raw, vdev=xvda, access=w, target=/home/dsx/FreeBSD-13.0-RELEASE-amd64.raw' ] > > > > > > dmesg: http://download.bsdsx.fr/xen/dmesg.txt > > > > Same problem with FreeBSD dom0: > > > > dsx@ni3>uname -smr > > FreeBSD 13.0-RELEASE-p4 amd64 > > dsx@ni3>pkg info 'xen-*' > > xen-kernel-4.15.0_1 > > xen-tools-4.15.0_2 > > > > Any hint ? > > This is a known problem. IIRC it's all caused by PVH having no ACPI > SCI interrupt. Will try to find some time to look into it and > hopefully find a solution. The following patch should fix the issue, will test it doesn't cause issues for HVM guests. Note that migration of PVH guests won't work also. Thanks, Roger. --- diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index 426682a8f2d9..b42b52a62411 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -347,17 +347,12 @@ xctrl_crash() } static void -xen_pv_shutdown_final(void *arg, int howto) +shutdown_final(void *arg, int howto) { - /* - * Inform the hypervisor that shutdown is complete. - * This is not necessary in HVM domains since Xen - * emulates ACPI in that mode and FreeBSD's ACPI - * support will request this transition. - */ - if (howto & (RB_HALT | RB_POWEROFF)) + /* Inform the hypervisor that shutdown is complete. */ + if (howto & RB_POWEROFF) HYPERVISOR_shutdown(SHUTDOWN_poweroff); - else + else if (howto & RB_POWERCYCLE) HYPERVISOR_shutdown(SHUTDOWN_reboot); } @@ -453,9 +448,8 @@ xctrl_attach(device_t dev) xctrl->xctrl_watch.max_pending = 1; xs_register_watch(&xctrl->xctrl_watch); - if (xen_pv_shutdown_handler()) - EVENTHANDLER_REGISTER(shutdown_final, xen_pv_shutdown_final, NULL, - SHUTDOWN_PRI_LAST); + EVENTHANDLER_REGISTER(shutdown_final, shutdown_final, NULL, + SHUTDOWN_PRI_LAST); return (0); } diff --git a/sys/x86/include/xen/xen-os.h b/sys/x86/include/xen/xen-os.h index 9d0964c6631d..655961da22fd 100644 --- a/sys/x86/include/xen/xen-os.h +++ b/sys/x86/include/xen/xen-os.h @@ -56,13 +56,6 @@ xen_has_percpu_evtchn(void) return (!xen_hvm_domain() || xen_vector_callback_enabled); } -static inline bool -xen_pv_shutdown_handler(void) -{ - - return (xen_pv_domain()); -} - static inline bool xen_pv_disks_disabled(void) {