From nobody Mon Jun 19 05:58:01 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 4QkzZd74LTz4fCQs; Mon, 19 Jun 2023 05:58:01 +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 4QkzZd4pbFz4KPm; Mon, 19 Jun 2023 05:58:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687154281; 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=+KX3Txi0/OK0bBsxlIru9LFr9nY/5N2dqERozcTqr68=; b=GUs1p9hpyZ/+1BT9QRP+5kr8xquABNQKlxV9b9mteM5uaXEeJjLN69vhC6M4VQGWDh/UZO HyH7t8oiDbk2F9NqXUZlBQ1lRtWBhhGcP++ThKnfJ2aSAPm8txFx9tZnJj71/P44SLDZ7W M2ggktTazky6GrGtPHoec1HMy3qtKlYONUxQYpRwzeyluq0MvavIi2hbehW65xhP9FyQg8 6oeZ3WJmlGwUUqn3PXazuN9X9OLzieRhTNn0XkRYgQRGo4Gg4ooIjNsrYPjOhRM2qVHwg5 CqIBN3ZWhEgok1x4feZq/tpp8mEAQS5ojK0ZwKJKNedZYrkWG741MxWo6UFHpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687154281; 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=+KX3Txi0/OK0bBsxlIru9LFr9nY/5N2dqERozcTqr68=; b=hS81z92itl6xruBb2q3YQynecHDB/jNXeFLBtO2AN9PIKIpzOqD46pUIqHodzf/yagKTc0 1lIMSKEOhSSW6qY+MmmmelJ9T1VT+0ZnTa9TWZiNBY+fzBZh3hbA0vtbqdwwgY5GjwCaRs mb2EypK18I+1gKrvpdWOPr8GwLN2hLDOXzBBSLisdE+V914PDrcES32lynTVvNszud2bbY eXYeTUH05gMBMPOsxyu4PUqPqA9aQ+2Kmk81RRf6WOj7mD82FAj55A7+JJQhHKcixGihg+ T7NDcgCBffAv/Nu4NpeRChXXVupoDOKGPVXDnizEStFcbLQuOi1/vRMrF2Minw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687154281; a=rsa-sha256; cv=none; b=iRZKT7bJAQE3t9D7w3WOMLbfOQt2ZYUY5O/Wc4545tq3rKCc0whcl1jD2bwuzN687pOqNG FP7DYDleNTcwdfHZ5NoilF3KsBAmwAoczFBP53JdNGRL+XUC31eYKMW46+hSevZ4VG9rKD WIRVdyFQxJ2U0l2FsElShlYvJcfz/JoNC0O4lvQn4TapqUSlVBHYNRZNWAjYy6LCYvh2YQ V1VNjPL5oBsp7rqLt1OAckYifAv8PrlCFFlHQtYOe7EIGKWPVnfBmL8o4liMDaLebat63P jjXpWA22DI8yPRgDcxqt+Y+35N7Gr7I5xuxiosJl0ICd0KczvPKyqUnIPP4/iw== 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 4QkzZd3cNdz15S7; Mon, 19 Jun 2023 05:58: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 35J5w1XK026041; Mon, 19 Jun 2023 05:58:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35J5w10e026040; Mon, 19 Jun 2023 05:58:01 GMT (envelope-from git) Date: Mon, 19 Jun 2023 05:58:01 GMT Message-Id: <202306190558.35J5w10e026040@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Corvin=20K=C3=B6hne?= Subject: git: 6f7d2cf8bbb5 - main - bhyve: add .pe_snapshot method for PCI 'hostbridge' 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: corvink X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6f7d2cf8bbb5ce6c4dbe0153d54cdc474b5266f4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by corvink: URL: https://cgit.FreeBSD.org/src/commit/?id=6f7d2cf8bbb5ce6c4dbe0153d54cdc474b5266f4 commit 6f7d2cf8bbb5ce6c4dbe0153d54cdc474b5266f4 Author: Vitaliy Gusev AuthorDate: 2023-05-15 16:29:56 +0000 Commit: Corvin Köhne CommitDate: 2023-06-19 05:57:04 +0000 bhyve: add .pe_snapshot method for PCI 'hostbridge' There is no error when dump doesn't have it, but to be more consistent this PCI devices should be saved as well. Reviewed by: corvink, rew MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D40108 --- usr.sbin/bhyve/pci_hostbridge.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/usr.sbin/bhyve/pci_hostbridge.c b/usr.sbin/bhyve/pci_hostbridge.c index 03eacc5e134a..90ccda0a79cd 100644 --- a/usr.sbin/bhyve/pci_hostbridge.c +++ b/usr.sbin/bhyve/pci_hostbridge.c @@ -86,6 +86,14 @@ pci_amd_hostbridge_legacy_config(nvlist_t *nvl, const char *opts __unused) return (0); } +#ifdef BHYVE_SNAPSHOT +static int +pci_de_snapshot(struct vm_snapshot_meta *meta __unused) +{ + return (0); +} +#endif + static const struct pci_devemu pci_de_amd_hostbridge = { .pe_emu = "amd_hostbridge", .pe_legacy_config = pci_amd_hostbridge_legacy_config, @@ -96,5 +104,8 @@ PCI_EMUL_SET(pci_de_amd_hostbridge); static const struct pci_devemu pci_de_hostbridge = { .pe_emu = "hostbridge", .pe_init = pci_hostbridge_init, +#ifdef BHYVE_SNAPSHOT + .pe_snapshot = pci_de_snapshot, +#endif }; PCI_EMUL_SET(pci_de_hostbridge);