Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 2020 08:36:15 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362952 - head/usr.sbin/bhyve
Message-ID:  <202007060836.0668aFZo090889@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grehan
Date: Mon Jul  6 08:36:14 2020
New Revision: 362952
URL: https://svnweb.freebsd.org/changeset/base/362952

Log:
  Silence ACPI RTC error/warning in Linux guests.
  
  Allow guests to	set the	RTC bit	in the ACPI PM control register.
  This eliminates an annoying	(and harmless) Linux kernel boot message.
  
  PR:	244721
  Submitted by:	Jose Luis Duran
  MFC after:	1 week

Modified:
  head/usr.sbin/bhyve/pm.c

Modified: head/usr.sbin/bhyve/pm.c
==============================================================================
--- head/usr.sbin/bhyve/pm.c	Mon Jul  6 02:00:35 2020	(r362951)
+++ head/usr.sbin/bhyve/pm.c	Mon Jul  6 08:36:14 2020	(r362952)
@@ -198,7 +198,7 @@ pm1_enable_handler(struct vmctx *ctx, int vcpu, int in
 		 * the global lock, but ACPI-CA whines profusely if it
 		 * can't set GBL_EN.
 		 */
-		pm1_enable = *eax & (PM1_PWRBTN_EN | PM1_GBL_EN);
+		pm1_enable = *eax & (PM1_RTC_EN | PM1_PWRBTN_EN | PM1_GBL_EN);
 		sci_update(ctx);
 	}
 	pthread_mutex_unlock(&pm_lock);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007060836.0668aFZo090889>