From owner-dev-commits-src-all@freebsd.org Wed Jul 28 15:28:02 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 332D265D6A5; Wed, 28 Jul 2021 15:28:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GZcxF6P9qz3LdH; Wed, 28 Jul 2021 15:28:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9E260201C6; Wed, 28 Jul 2021 15:28:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 16SFS1aI088160; Wed, 28 Jul 2021 15:28:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16SFS1qh088159; Wed, 28 Jul 2021 15:28:01 GMT (envelope-from git) Date: Wed, 28 Jul 2021 15:28:01 GMT Message-Id: <202107281528.16SFS1qh088159@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Roger Pau Monn=C3=A9?= Subject: git: 46c46edd1889 - main - xen/control: print warning on call of xctrl_suspend() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: royger X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 46c46edd18894e75a51b004f1abc1894c78864fe Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2021 15:28:03 -0000 The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=46c46edd18894e75a51b004f1abc1894c78864fe commit 46c46edd18894e75a51b004f1abc1894c78864fe Author: Julien Grall AuthorDate: 2014-01-14 01:41:15 +0000 Commit: Roger Pau Monné CommitDate: 2021-07-28 15:27:05 +0000 xen/control: print warning on call of xctrl_suspend() Presently suspend/resume and migration aren't supported on Xen/ARM. As such this shouldn't ever occur. This likely applies to future Xen architectures (RISC-V) and xctrl_suspend() needs dependency on intr_machdep.h fixed. Submitted by: Elliott Mitchell Reviewed by: royger Differential Revision: https://reviews.freebsd.org/D29599 --- sys/dev/xen/control/control.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/dev/xen/control/control.c b/sys/dev/xen/control/control.c index f72193edceea..234ebdf530b0 100644 --- a/sys/dev/xen/control/control.c +++ b/sys/dev/xen/control/control.c @@ -130,9 +130,9 @@ __FBSDID("$FreeBSD$"); #include #include +#if defined(__amd64__) || defined(__i386__) #include -#if defined(__amd64__) || defined(__i386__) #include #endif @@ -196,6 +196,13 @@ xctrl_reboot() shutdown_nice(0); } +#if !defined(__amd64__) && !defined(__i386__) +static void +xctrl_suspend() +{ + printf("WARNING: xen/control: Suspend not supported!\n"); +} +#else /* __amd64__ || __i386__ */ static void xctrl_suspend() { @@ -332,6 +339,7 @@ xctrl_suspend() printf("System resumed after suspension\n"); } +#endif /* __amd64__ || __i386__ */ static void xctrl_crash()