Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp530959rdb; Mon, 15 Jan 2024 05:28:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUN2xNPHGOSYw2scP8LI0AxqcEcFfE78N44sa99nRswZTxieY4xEi0QpiOKHTqTnCAHlE4 X-Received: by 2002:a05:6870:a44a:b0:206:e28:5493 with SMTP id n10-20020a056870a44a00b002060e285493mr8465342oal.96.1705325292850; Mon, 15 Jan 2024 05:28:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705325292; cv=none; d=google.com; s=arc-20160816; b=lCkaz+25cKnXSV3X2OillJfR2/2leq/0/1t+70sJvGfIsLjvI0aVG6bOjXo1GNo3Fq drUh09xcD07lzWKuiSBGEuWMuIwqk7MlSeJ9ejEXTkR6YpaDGPCygVgFc9AC8GhXIY2z 6OMAgp0xz4t4xtV+IcSac/HshLKf6yUpOVDa76W1B1l1tTaZiInKPBGs5EVPOSFpgFFp xpHphgYNzm1AYl8ceKLl6E+02xjMKKw/wtjAY8d5F7ucBSqZjh5WJsPLneXXxBVrUjnd 8N3aO159dNJUo0G1yCnwlRTmFmR4vgOPP4xadj5FwQLrq8RVYjcl5sGlJA2KNpLL42zm We4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=CRE66M5NAo6zqtyZQM3AWAf6gOvFh/lPcxTLxUzKJu0=; fh=M8RYh0IEixJUTiJZsjxOoBaBtKSfbzpvZGk6+39bRwo=; b=eCQgilobMakjT3fJLvJWKQ/HN9EyMZCmVIuEscX5cSuXeD67h8jI1VD9h6m/jrbFOQ TQOO4mcXNIcTXwFztOq5mSpgIsNLyh1BQV/h56H0kaUuIC7NHiGFhjN2hXbGmz8ulmat 3DjMEbxmfUa5AEK6MATN93QILwDz8H+jnr2+7AFURMwRu34jMgZGT+FKMqt3M7d0E8DN ERy576algMaOPEwB/WhabG+lTuLwgZRVRsulSdr9KRyQS2rZkO6dkQe4f/YtKZr72ddM KaWM2293hSyoR3IavcypgoE3wHDuNdZwjBXHW5rIYQohUtV8ve1WMJLXCW/wS6YsAkiv D4Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=p0Alr4oY; spf=pass (google.com: domain of linux-kernel+bounces-26024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s69-20020a637748000000b005ced4fbeabcsi9094709pgc.844.2024.01.15.05.28.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 05:28:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=p0Alr4oY; spf=pass (google.com: domain of linux-kernel+bounces-26024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 771B9281FF7 for ; Mon, 15 Jan 2024 13:28:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC235171BF; Mon, 15 Jan 2024 13:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="p0Alr4oY" Received: from smtp-fw-9105.amazon.com (smtp-fw-9105.amazon.com [207.171.188.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DEF6168DE; Mon, 15 Jan 2024 13:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1705325281; x=1736861281; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=CRE66M5NAo6zqtyZQM3AWAf6gOvFh/lPcxTLxUzKJu0=; b=p0Alr4oY/WE/6zqqOWFg7Z3U/IC92V2UVasniiWWKeSy9aC9xZIhh9oa tDZ2gvXgjw7DDKATFNaTnEdxr3Hd7lejDwMP9f4UVhbT3liyVCGObcKm0 I0cisZ7x6wgiKs5OJDFx6aVhL0qN33BfWwKKLF4rt5k79GExlnLgi04pD 0=; X-IronPort-AV: E=Sophos;i="6.04,196,1695686400"; d="scan'208";a="697876050" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-iad-1d-m6i4x-00fceed5.us-east-1.amazon.com) ([10.25.36.210]) by smtp-border-fw-9105.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2024 13:27:52 +0000 Received: from smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev (iad7-ws-svc-p70-lb3-vlan3.iad.amazon.com [10.32.235.38]) by email-inbound-relay-iad-1d-m6i4x-00fceed5.us-east-1.amazon.com (Postfix) with ESMTPS id 18BD5A0A25; Mon, 15 Jan 2024 13:27:44 +0000 (UTC) Received: from EX19MTAUWC002.ant.amazon.com [10.0.7.35:24915] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.61.210:2525] with esmtp (Farcaster) id 00e71d69-8a91-48a6-b14b-66e164da46e8; Mon, 15 Jan 2024 13:27:44 +0000 (UTC) X-Farcaster-Flow-ID: 00e71d69-8a91-48a6-b14b-66e164da46e8 Received: from EX19D020UWC004.ant.amazon.com (10.13.138.149) by EX19MTAUWC002.ant.amazon.com (10.250.64.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 15 Jan 2024 13:27:43 +0000 Received: from [0.0.0.0] (10.253.83.51) by EX19D020UWC004.ant.amazon.com (10.13.138.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 15 Jan 2024 13:27:34 +0000 Message-ID: <64047065-41a1-4235-b600-bf3530c76722@amazon.com> Date: Mon, 15 Jan 2024 14:27:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 04/17] kexec: Add KHO parsing support Content-Language: en-US To: Stanislav Kinsburskii CC: , , , , , , , , Eric Biederman , "H. Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Rob Herring , Steven Rostedt , Andrew Morton , Mark Rutland , "Tom Lendacky" , Ashish Kalra , James Gowans , , , , Anthony Yznaga , Usama Arif , David Woodhouse , Benjamin Herrenschmidt References: <20231222193607.15474-1-graf@amazon.com> <20231222193607.15474-5-graf@amazon.com> <20240101033301.GA765@skinsburskii.> From: Alexander Graf In-Reply-To: <20240101033301.GA765@skinsburskii.> X-ClientProxiedBy: EX19D041UWB004.ant.amazon.com (10.13.139.143) To EX19D020UWC004.ant.amazon.com (10.13.138.149) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Ck9uIDAxLjAxLjI0IDA0OjMzLCBTdGFuaXNsYXYgS2luc2J1cnNraWkgd3JvdGU6Cj4gT24gRnJp LCBEZWMgMjIsIDIwMjMgYXQgMDc6MzU6NTRQTSArMDAwMCwgQWxleGFuZGVyIEdyYWYgd3JvdGU6 Cj4+ICsvKioKPj4gKyAqIGtob19yZXNlcnZlX3ByZXZpb3VzX21lbSAtIEFkZHMgYWxsIG1lbW9y eSByZXNlcnZhdGlvbnMgaW50byBtZW1ibG9ja3MKPj4gKyAqIGFuZCBtb3ZlcyB1cyBvdXQgb2Yg dGhlIHNjcmF0Y2ggb25seSBwaGFzZS4gTXVzdCBiZSBjYWxsZWQgYWZ0ZXIgcGFnZSB0YWJsZXMK Pj4gKyAqIGFyZSBpbml0aWFsaXplZCBhbmQgbWVtYmxvY2tfYWxsb3dfcmVzaXplKCkuCj4+ICsg Ki8KPj4gK3ZvaWQgX19pbml0IGtob19yZXNlcnZlX3ByZXZpb3VzX21lbSh2b2lkKQo+PiArewo+ PiArICAgICB2b2lkICptZW1fdmlydCA9IF9fdmEobWVtX3BoeXMpOwo+PiArICAgICBpbnQgb2Zm LCBlcnI7Cj4+ICsKPj4gKyAgICAgaWYgKCFoYW5kb3Zlcl9waHlzIHx8ICFtZW1fcGh5cykKPj4g KyAgICAgICAgICAgICByZXR1cm47Cj4+ICsKPj4gKyAgICAgLyoKPj4gKyAgICAgICogV2UgcmVh Y2hlZCBoZXJlIGJlY2F1c2Ugd2UgYXJlIHJ1bm5pbmcgaW5zaWRlIGEgd29ya2luZyBsaW5lYXIg bWFwCj4+ICsgICAgICAqIHRoYXQgYWxsb3dzIHVzIHRvIHJlc2l6ZSB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