From nobody Sun Dec 24 08:23:04 2023 X-Original-To: dev-commits-src-all@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 4SyYvF1Myzz54HVF; Sun, 24 Dec 2023 08:23:05 +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 4SyYvD4xCvz4Xd9; Sun, 24 Dec 2023 08:23:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703406184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0oeVMpQx4g1DRMor5GGIn/eSmnq2kb+idp4HEaxBed4=; b=RNI5GxT6OmKzwpxlFov5cMji7DkErDJU7lQ8L2e1n83V3RpCF2eBbhBqy32zGpa8FgpoKv MFZV6W4+Gel8D0HC4iO7llUZqImBOH/OxwUknw98HpMsnjfmBR0yp5j0y/zkIzPz4q21dY 89QhfutVP3/WvKJfJhXNchHCij0/B3w/6NP+NmyCQoQB/2FWxkHCyzi5OOnlbdmjeD8ZGn WFdfMsg1LOmLqxsKiVCa95dbGZl1cnUgw6yhDEUjwFQaSrQeoQ7XscSeziFMxGgycU+BOc ZWoJZAxQRK2oLUdhgAaebyf6rp7I14PG3sGlbHn66pkO9h/tjKvGI9gDttR/CA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703406184; a=rsa-sha256; cv=none; b=Oh4xP5cpM1fdsRrF3HE7JMIPXw1d6cW7Jp2xmGEYAvVSVRvGIz9D7CR/PnEbfvd0Sk87BV ocueSkVzAl0XloCny04yZKjOjjApelWxQgfwREdowqkFd6juCkHiy7wAp7UiwMkP5P108b iWVzyRf0dh2x7FW4tgKtefg4QeCQ62sRiYwOgxgDGebRH4bdAXDuDRTst7nvmesJ3lPbo+ uH115vZrBRp6ae8L8reGFeIuh51nav/v7iYHNa0UzomwAHUH3KQd1QLPY1KjgupPoLmpgx WaQlLiECgGP9pfBUaNYGEVL/IqTzqHkWf1GOshQxeXOogpRwG6NjjOojValvVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703406184; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0oeVMpQx4g1DRMor5GGIn/eSmnq2kb+idp4HEaxBed4=; b=vEfihqvycUvMypGDSp2RdKLWP+yp8fxw2PxKN2JcCCWfB+oNO0F72pvQnYyldYTLnOpyRS wFqN+mew/sE36HQaoYnyiaNgt0Im9Qa15x8HQf6xK84wNfDSPthP0xo5luBuh3Mi5tlvw0 rZBGD1y6RWZ2ln4M6lEKDEsQmPA+glznE0FTdT4JMVlhUnE7R9ZIy8K058p775nhNNhmcQ W8nuHXHnYQntCKuu0fOr7QjMmzkpKPaQY+6dBtrJGCxZ+WFdXFbPD4TlbB6Wmb78YMU918 deYssu7hyxQwyN+G/FsCPWIFYAGNW5wx7EkFP24HVuza2Uo2W6xoAuUrvBpBoA== 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 4SyYvD41g6z4lB; Sun, 24 Dec 2023 08:23:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BO8N4N9087002; Sun, 24 Dec 2023 08:23:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BO8N4AO086999; Sun, 24 Dec 2023 08:23:04 GMT (envelope-from git) Date: Sun, 24 Dec 2023 08:23:04 GMT Message-Id: <202312240823.3BO8N4AO086999@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: 206e9fea7502 - main - LinuxKPI: Add asm/hypervisor.h header List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 206e9fea7502dccd126a721c30a1675bdef48633 Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=206e9fea7502dccd126a721c30a1675bdef48633 commit 206e9fea7502dccd126a721c30a1675bdef48633 Author: Vladimir Kondratyev AuthorDate: 2023-12-24 08:19:59 +0000 Commit: Vladimir Kondratyev CommitDate: 2023-12-24 08:19:59 +0000 LinuxKPI: Add asm/hypervisor.h header Sponsored by: Serenity Cyber Security, LLC Obtained from: OpenBSD Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42802 --- sys/compat/linuxkpi/common/include/asm/hypervisor.h | 19 +++++++++++++++++++ sys/compat/linuxkpi/dummy/include/asm/hypervisor.h | 0 2 files changed, 19 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/hypervisor.h b/sys/compat/linuxkpi/common/include/asm/hypervisor.h new file mode 100644 index 000000000000..f344a2929359 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/asm/hypervisor.h @@ -0,0 +1,19 @@ +/* Public domain. */ + +#ifndef _LINUXKPI_ASM_HYPERVISOR_H +#define _LINUXKPI_ASM_HYPERVISOR_H + +#if defined(__i386__) || defined(__amd64__) + +#define X86_HYPER_NATIVE 1 +#define X86_HYPER_MS_HYPERV 2 + +static inline bool +hypervisor_is_type(int type) +{ + return (type == X86_HYPER_NATIVE); +} + +#endif + +#endif diff --git a/sys/compat/linuxkpi/dummy/include/asm/hypervisor.h b/sys/compat/linuxkpi/dummy/include/asm/hypervisor.h deleted file mode 100644 index e69de29bb2d1..000000000000