From patchwork Tue Nov 22 16:38:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 13052569 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A52A9C4332F for ; Tue, 22 Nov 2022 16:38:44 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.447261.703281 (Exim 4.92) (envelope-from ) id 1oxWHr-00042P-9i; Tue, 22 Nov 2022 16:38:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 447261.703281; Tue, 22 Nov 2022 16:38:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oxWHr-00042I-5k; Tue, 22 Nov 2022 16:38:19 +0000 Received: by outflank-mailman (input) for mailman id 447261; Tue, 22 Nov 2022 16:38:17 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1oxWHp-00042C-AU for xen-devel@lists.xenproject.org; Tue, 22 Nov 2022 16:38:17 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 0fa83139-6a84-11ed-91b6-6bf2151ebd3b; Tue, 22 Nov 2022 17:38:15 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6F80021EE0; Tue, 22 Nov 2022 16:38:14 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id EEFFB13AA1; Tue, 22 Nov 2022 16:38:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id K5PhOPX6fGMNPgAAMHmgww (envelope-from ); Tue, 22 Nov 2022 16:38:13 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 0fa83139-6a84-11ed-91b6-6bf2151ebd3b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669135094; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=2HaFudDaMDVTnrq9g6vTYOKijFH6XNF8q+9ygX8nBYA=; b=fakECqQAM0jXiY64Wp3MlDxQ0wrI17FsjJs9aBXR4mPgmulrLathoVy4tvMr6JxJ+MqkMI qZ1FWS9pVQJr8Bc6fK6I/LZSTDe6x3x1PB3wTv72Scma9KVfatS2oZDDQ+P+n6sZua5thx lBeotURNkC+lOLawZpZRsFK3RlSaTq0= From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ard Biesheuvel , Darren Hart , Andy Shevchenko , Boris Ostrovsky , xen-devel@lists.xenproject.org Subject: [PATCH v2 0/3] x86/realmode: use a dummy trampoline for Xen PV guests Date: Tue, 22 Nov 2022 17:38:07 +0100 Message-Id: <20221122163810.29752-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 A Xen PV guests can't run in realmode, so the realmode trampoline can omitted. Changes in V2: - complete new approach Juergen Gross (3): x86/realmode: test real_mode_header outside of real_mode_size_needed() x86/realmode: add trampoline reference structure x86/xen: add a dummy trampoline for Xen PV guests arch/x86/include/asm/realmode.h | 15 +++++++++++---- arch/x86/platform/efi/quirks.c | 3 ++- arch/x86/realmode/init.c | 25 ++++++++++++++++++++----- arch/x86/xen/enlighten_pv.c | 17 +++++++++++++++++ 4 files changed, 50 insertions(+), 10 deletions(-)