From patchwork Tue Oct 31 13:19:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Gardner X-Patchwork-Id: 1857566 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SKW2N3QG7z1yQZ for ; Wed, 1 Nov 2023 00:19:40 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qxoeP-0004Z6-C4; Tue, 31 Oct 2023 13:19:21 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qxoeK-0004Yl-UH for kernel-team@lists.ubuntu.com; Tue, 31 Oct 2023 13:19:17 +0000 Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 674133FAE9 for ; Tue, 31 Oct 2023 13:19:15 +0000 (UTC) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-6b74afe92dbso3920829b3a.1 for ; Tue, 31 Oct 2023 06:19:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698758353; x=1699363153; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qddHf0b1aTxo7EXxZQD4kFJUPxat/CnIixRANmVbFfc=; b=ecMdfKXyfDUTk+MrmwdVFitqwzqtMv3Nk9FHmt0rqVHYy3B1dnlCS1AK4QXzmRt1WJ Ox3+ECru0FtWsb6Ccm3uDus9YYY5fD+ZNO9FJSJIumVKRazmuRiSxSX1XKbaOrJ6m1Ty M09andDM23NdR+Q9yNUljTIfZ6IFwC+MpCOWoIhLljoLM4oesdpdH/dhz7GKYLiLAeVq CoNpw5oNOLubreauRNd8d6IJcSfm/Fk2ZdGa73X5LrDSIYI/ZxsHB9IHNthlnHMFG91l dIbuOV04KlKD0A5P8dXNlSVT0L5TNO6P1xhGJ4q8JtFpVGvG4nLx1oRRkqkSB1HopDNm 1S3g== X-Gm-Message-State: AOJu0YwVAcXQ+0Ce4Iys/jN/X0Bw5TwHwRQFzlWEC3IhYcDwdRxzP0Vp 7NLMqfUIVpbT9w3qh0PE5cz7/7MYP196+4FJJV5Q/FuyuJlsWdU2QW6gI6Ujt5ggM8O6GUSW5dT ond24ickcQu3SMjKQvd6+ZoMexyCYMqnLse/8Ri9RGIJNcX6c+w== X-Received: by 2002:a05:6a00:1396:b0:6b7:b42f:e438 with SMTP id t22-20020a056a00139600b006b7b42fe438mr12611390pfg.8.1698758353111; Tue, 31 Oct 2023 06:19:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE12msrI1Wxmg5yBG1DhEYs3CVQxHDBYuqxiBB/zpXMZ9rD1Zg0PwgNDintVlk6YebbrImc3Q== X-Received: by 2002:a05:6a00:1396:b0:6b7:b42f:e438 with SMTP id t22-20020a056a00139600b006b7b42fe438mr12611366pfg.8.1698758352730; Tue, 31 Oct 2023 06:19:12 -0700 (PDT) Received: from smtp.gmail.com (174-045-099-030.res.spectrum.com. [174.45.99.30]) by smtp.gmail.com with ESMTPSA id j21-20020a056a00235500b006be484e5b9bsm1230057pfj.58.2023.10.31.06.19.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 06:19:12 -0700 (PDT) From: Tim Gardner To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2][l linux-azure] Azure: Update TDX with HCL support Date: Tue, 31 Oct 2023 07:19:07 -0600 Message-Id: <20231031131909.99632-1-tim.gardner@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2042096 SRU Justification [Impact] Microsoft has asked for the addition of 2 patches for TDX and SNP-SEV VM support with HCL. The refreshed patches will fix 2 bugs for future Hyper-V versions: 1) PCI DDA for Linux TDX VMs with HCL is not working due to a guest bug and a host bug. The guest bug is fixed in the mainline version of the TDX patches. 2) On a recent Hyper-V dev build that advertises the Hyper-V TLB flushing hypercalls, the current Ubuntu 6.2 kernel passes a shared input page to the Hyper-V while it should pass a private input page; as a result, the hypercall always fails and Linux now falls back to the legacy native method of flusing TLB. This slows down the flush-TLB operation . The mainline version doesn't have the bug. [Test Plan] Microsoft tested. [Regression Potential] Azure instances with TDX on HCL hypervisors may not work correctly. [Other Info] SF: #00364214 Acked-by: Cengiz Can