From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56163C4332F for ; Tue, 9 Nov 2021 22:51:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4236661037 for ; Tue, 9 Nov 2021 22:51:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242388AbhKIWyd (ORCPT ); Tue, 9 Nov 2021 17:54:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344412AbhKIWxf (ORCPT ); Tue, 9 Nov 2021 17:53:35 -0500 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04B2C110F31 for ; Tue, 9 Nov 2021 14:23:53 -0800 (PST) Received: by mail-pg1-x54a.google.com with SMTP id 70-20020a630149000000b002da385ceffaso318813pgb.17 for ; Tue, 09 Nov 2021 14:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=reply-to:date:message-id:mime-version:subject:from:to:cc; bh=kpTVRTG30gb5sZCl4YKhxq65GFDXRjPxhbltBMSsgmo=; b=fyYpg6LcGCdHWz5166bjt35JMMxbTcll+RT0DcLpzfCrrvCmGlPFhYHDAbJKQseKDk 590fjhGfucR5U5CtiYSrXD+f8mY7EHULiHXOKBnmfUaOP7vfzzBYAk+IZZ+iEzFAYRoh WpoUMWTGHyxomHNH64RddIemfgCHqUnxS2ZwAToHVPrbyarTzGFfbIarwh+JC0PebZsY 1oBsRfGOWVioxx3T69uh3GYXiVA1ZfGn7FefO1V2mxbZOK1Pua04ZatKvoVxDSxS1yMU 1IZICp6lmTgx3YYlUzcvPPX17sw7Gmn4ebce81EeJa1Hn+i48wW0+dV/51V6LbIBM1sD 6jwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:date:message-id:mime-version:subject :from:to:cc; bh=kpTVRTG30gb5sZCl4YKhxq65GFDXRjPxhbltBMSsgmo=; b=xVQU5A8iTJGxKNL+9lmHdURIMJkWrKojm1KdUuOPNFS6/16URK7xzoLEaC9WBOT1+j oEmSA+a+IaIKp19EMo8o5IeS0npHUq3DoarYCRn91PG5F+1FM6HQ1XEFASyTuAGhE1QE tfE8yYvMA1hprVxjX4BvRg5ju3k7/b0NdGlIwRhTQXoDQcwNc5XcpOJ+AsxjMAhvi8UV kSalIy4RXnmNI32Jl78PI+vTrT9rkFW8ILYaEBculiSqObgriXiG2fpc9G4EXz7N22r8 I1ScseYCH5AvgmAL1KrE6VcvA+QZMXQ0w3ayhmZTIwM8e6N9cQnzaAqo60bZApqkk2b2 DSKg== X-Gm-Message-State: AOAM532NFLKRwUaIiBq8zWW+NkDsRrlFgAot3E9NOfBPfJGhCFPwWOqm GJdOiOYJdxhD9tKNg5KuaaIi6pO7J4k= X-Google-Smtp-Source: ABdhPJySbBTdtDcaJZoWwUGjaiI6PuTHdGY1VH9cdyB+hlZtOyy2LqPP8Kso19nlBt6aMMACAnVgm7f8rW4= X-Received: from seanjc.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:3e5]) (user=seanjc job=sendgmr) by 2002:a17:902:e74e:b0:142:fa5:49f1 with SMTP id p14-20020a170902e74e00b001420fa549f1mr10858327plf.84.1636496633290; Tue, 09 Nov 2021 14:23:53 -0800 (PST) Reply-To: Sean Christopherson Date: Tue, 9 Nov 2021 22:23:48 +0000 Message-Id: <20211109222350.2266045-1-seanjc@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.34.0.rc0.344.g81b53c2807-goog Subject: [PATCH 0/2] KVM: SEV: Fall back to __vmalloc() for SEV-ES scratch From: Sean Christopherson To: Paolo Bonzini Cc: Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Lendacky Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two cleanups related to handling failure to setup the GHCB scratch area for SEV-ES. Found by inspection when reviewing the SNP series. Compile tested only. Sean Christopherson (2): KVM: SEV: Return appropriate error codes if SEV-ES scratch setup fails KVM: SEV: Fall back to __vmalloc() for SEV-ES scratch area if necessary arch/x86/kvm/svm/sev.c | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) -- 2.34.0.rc0.344.g81b53c2807-goog