Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1667758pxy; Thu, 6 May 2021 12:47:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtyJE1+cn4r1p7zzhPs+N2kWHWCwIklpO8F0o9qz4nszxHq++IU1ZOK2VNriNOqCZKWUNM X-Received: by 2002:a05:6402:b55:: with SMTP id bx21mr7331727edb.281.1620330472242; Thu, 06 May 2021 12:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620330472; cv=none; d=google.com; s=arc-20160816; b=oJbsoIyQeX9hTlXCAeRqyYaAsD92jGFCbnjuuimJU7ShEAxeRNIy+zOR02rxcMcAy7 PLiA37ZWy/RY+0jwawpaCM4Bb04LzXbkTO3qRV5Zrvhx8i50zdBAwWkYJQhpsVXCe/ch jx0Z4V/xhSkgXGN7aras/h8BMQWBoNPAdEIwUpYWCvfUO2xyTaoMUnaxznZz59SeoOWl hrVveYYgxAmgXZDeo1tF8mbOd/u72MLFgaKlrAY3Wqyet+mXwE00E/TJGN6ZQiyLZpav ozkGYGGvSpswJCucj1NqFHZ+MFSQH/aezUG1hGNyLIPMS7Z5H0yOCQWBoYBu5sbrwehg PqzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=TWGuEerj5c1ffjldZ5CZfn2hKYhFKbdYTKPHOLmJEt0=; b=ZPVQTatCtuZpNk8tUl88BwWDY09dC8Ez3Cag+I3El3kF+0URZF+BLFRqBiUWyXtWvH 2hhR79zn5/5GTUdOprgnLLoroajjVdGhcAZlf/ycCcTmNUgy5Rwy9JjuxU6l5YPh4qcB UqnPt5sGF1lzZgz5RxZzxoS/wtkwYIpAAV6soxLYsH/tcO5kxtGdVx698adRZiH7olqj b3UWbsjmgTHygQpmbAwGMcvkX7y6yfwxGITRgygG70wCTx9ZFx4Lg65JmEq/0Rfob9lJ /KEZmWxdFnVMLkfaZ71642exRp53dw3xsKGWkyI6UEH8RQJeTWZD4RyezTL+fc+UK0hk M93Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si3173009eje.251.2021.05.06.12.47.27; Thu, 06 May 2021 12:47:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233401AbhEFSZE (ORCPT + 99 others); Thu, 6 May 2021 14:25:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:51046 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231839AbhEFSZD (ORCPT ); Thu, 6 May 2021 14:25:03 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 26F63AF98; Thu, 6 May 2021 18:24:04 +0000 (UTC) Date: Thu, 6 May 2021 20:24:01 +0200 From: Joerg Roedel To: Sean Christopherson Cc: Joerg Roedel , Eric Biederman , x86@kernel.org, kexec@lists.infradead.org, stable@vger.kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Martin Radev , Arvind Sankar , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH 1/2] kexec: Allow architecture code to opt-out at runtime Message-ID: References: <20210506093122.28607-1-joro@8bytes.org> <20210506093122.28607-2-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 06, 2021 at 03:43:23PM +0000, Sean Christopherson wrote: > This misses kexec_file_load. Right, thanks, I will fix that in the next version. > Also, is a new hook really needed? E.g. the SEV-ES check be shoved > into machine_kexec_prepare(). The downside is that we'd do a fair > amount of work before detecting failure, but that doesn't seem hugely > problematic. That could work, but I think its more user-friendly to just claim that the syscalls are not supported at all. Regards, Joerg