From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.42]) by mx.groups.io with SMTP id smtpd.web10.91915.1679622163711979584 for ; Thu, 23 Mar 2023 18:42:43 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=jM55wmtV; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.92.42, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GxeLbnbboTCii1rP05xFDHKdI7pHAo8tog0bAlwUSGEOge8g6TVHnLVWAxIXqIFPqCzVku/PclXgBaCOxX/J8Q7mtZToNcErm17BJU9ube8+HD9phJZOF7GNWC/23wVrKG9bNCzgocdatbUoJQySVPWNGkzrtQPJwnOuBSsKVDmGN6lNAWp02gQL//Nk6/9SPL4GF0D4GTrwYR3m1EPOjvcwGtCe28aKHb4uR4HaVjUy0P8F6011WSwGGEN1xZ6mqEmgTG1ILfsWwFFueksrfiAcNtyg0yW6uxhnw7ByoBEJqitqH7X6DJGmw18O+mpOD/jdRK2X3wWUptjnBclLdQ== 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=OhmLr9hRj+dcVcHywvfWwlKbi3OxsuI9EISI85q0+Xs=; b=iLpEfn5XOn4dlgcxqxs+igelrx3Yr6lfnbzkC8XlkLYMHRx3QK0kkJVI3jhayP2pLhX4J1d+rlnMDStDNVorYZw4vz47dfn4Yo1jVAjrkWr4QaEpCGezjWEby/RwU7yPA/Uls3HZWLqvWD2IkEeuU5vR92p4Pz/2WYHv9HSqgfQZXfbM02/01oauTqcRrRsAn5Ms2wvK9YCh/d6Wd+DqZ52BR7SBEK6ggLxNi5TgGkGTlkp7zArZxixxlBV8m2d5kMmD0KwV9AFZYps9XFg9RHJjFG5ZMa2ioip56l8U+g+2wBZVZjuIfMHoUi2Hw8PGBfyaRJaRwk+a6fMsKCy14Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OhmLr9hRj+dcVcHywvfWwlKbi3OxsuI9EISI85q0+Xs=; b=jM55wmtV0M+vs5h5536/EdWLIXB2FeLAEtHwkHJCD/FJDOHToFIhiZZTxbYG+J/GxDPHCyR3jkUNVEvl10MK07X/9OkEdqkROkk/BeKuO0JmnDql74f8JavIeZ/gRp/UDtabXgKA4J5XPKxJ/2VjKWJREM7yYrV1HU1b33lwVumQZmoqyhYQbqi80BsUbbImX4x1X1MiOZY8LPLyywPNMsvAGkV23pVXYDP+d7i0XA/E0dZQw2w9YxzWtv5b0mWdoi5YIWwnJU7sF8xYwhLk5WMw1JHDRPI2qSqKhQIHBfOtt/mqzsSqgH7XHNpelg2FZ8hNwBNhoaxAdnhQHYBOSQ== Received: from MW4PR03CA0347.namprd03.prod.outlook.com (2603:10b6:303:dc::22) by DM4PR12MB5891.namprd12.prod.outlook.com (2603:10b6:8:67::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Fri, 24 Mar 2023 01:42:41 +0000 Received: from CO1NAM11FT061.eop-nam11.prod.protection.outlook.com (2603:10b6:303:dc:cafe::d7) by MW4PR03CA0347.outlook.office365.com (2603:10b6:303:dc::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38 via Frontend Transport; Fri, 24 Mar 2023 01:42:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CO1NAM11FT061.mail.protection.outlook.com (10.13.175.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.17 via Frontend Transport; Fri, 24 Mar 2023 01:42:40 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Thu, 23 Mar 2023 18:42:30 -0700 Received: from drhqmail202.nvidia.com (10.126.190.181) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Thu, 23 Mar 2023 18:42:30 -0700 Received: from 6cd8174ac25c.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.181) with Microsoft SMTP Server id 15.2.986.5 via Frontend Transport; Thu, 23 Mar 2023 18:42:29 -0700 From: "Jeff Brasen" To: CC: , , , , , Jeff Brasen Subject: [PATCH] OvmfPkg/VirtioMmioDeviceLib: virtio 1.0: Fix SetQueueAlignment. Date: Fri, 24 Mar 2023 01:42:17 +0000 Message-ID: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT061:EE_|DM4PR12MB5891:EE_ X-MS-Office365-Filtering-Correlation-Id: dd38eb43-9ecf-4db4-e470-08db2c090df9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7Ur5BpVqcs1o5WowNsdid4m/DEkRT8Xc59T0oIJ7VjwLvw7CEw7CVq5+2RW4/3Qzp/QKkU5GtUCr2BTCaaI3gi7DIeSKIg+cRFxLaSSU7IrRjColDIBFw6d4QxYoDdCYk9TXHOoxSt+1OrNw96vfDZoFcFsxHfQcL8HKxIdzDn9l4lLIiZTDUDMJIV+NNdlHG5Wr8poxxCZJf0Szp0N/HLUw3L5h9OdRX29Osh3c6/0NQU1fA12K9bQUXJI/BCgwtekKvBr6wdpyCTd+wDW0bgh9/3gafFfSgFYx0HXusnP7BN+3UCvMu7cenvGTjvsvQSM+uiExy/enTQRTx0tRQUVsQzpTjQwgmpo1w5bqZJMV1ywyxfkLzt6uuDQ32BxkwnxnfY13Iyl2b7Ut0rJDp+H8dDb969OpnOukT7jMUTmdtwUfgtBAHtNzsBRm3i5ggiQHKCS8vVEF6yikIw9QuaVCut2UqciYu45LxB+bu843gVeE/eztMgDy1kjSUH1vTdAYS2FSqJvdXvqjpVU8n+MPEYjXeRJ6diRjpCotNk0Ogp5Mpas0suORmS5vGsC3SfLYrieuuDnaBRpQczwjiUawJKrtLNNVrcKZK6KZbCzO1SnT7z0tfeqihYxScI9MvBXvucP2hq3WBQ+8G8o9ulWW5UqaMIZBM6nhebnjCrqAMXu4wpTfpRtSYLKAM/5w9S1q8vUqvGCC7CRN/8X57VI1Nr76fUFDzwT64GFYm26daCyuiUgQjy1jGuwfC6VE X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230025)(4636009)(136003)(396003)(39860400002)(346002)(376002)(451199018)(46966006)(40470700004)(36840700001)(41300700001)(5660300002)(4326008)(8676002)(2906002)(4744005)(40460700003)(7696005)(36860700001)(82740400003)(86362001)(356005)(7636003)(36756003)(6916009)(107886003)(26005)(6666004)(70206006)(316002)(70586007)(478600001)(82310400005)(40480700001)(47076005)(8936002)(54906003)(426003)(83380400001)(2616005)(186003)(336012);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2023 01:42:40.2928 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd38eb43-9ecf-4db4-e470-08db2c090df9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT061.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5891 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Nothing to do here for virtio 1.0 devices Signed-off-by: Jeff Brasen --- .../Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.= c b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c index 8bdf1e1fc3..de2c5fa2a6 100644 --- a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c +++ b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceFunctions.c @@ -144,7 +144,9 @@ VirtioMmioSetQueueAlignment ( =20 Device =3D VIRTIO_MMIO_DEVICE_FROM_VIRTIO_DEVICE (This); =20 - VIRTIO_CFG_WRITE (Device, VIRTIO_MMIO_OFFSET_QUEUE_ALIGN, Alignment); + if (Device->Version =3D=3D VIRTIO_MMIO_DEVICE_VERSION_0_95) { + VIRTIO_CFG_WRITE (Device, VIRTIO_MMIO_OFFSET_QUEUE_ALIGN, Alignment); + } =20 return EFI_SUCCESS; } --=20 2.25.1