Message ID | 20221122163810.29752-1-jgross@suse.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2320677wrr; Tue, 22 Nov 2022 08:43:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jzxPTAwqkBnlJ7muKsWaxjkrPSXoP1tJWHyV9xkfMgwPgBmzrK1dfCq5nMUOZAB7Td80m X-Received: by 2002:a63:d52:0:b0:477:66cb:b99 with SMTP id 18-20020a630d52000000b0047766cb0b99mr5281929pgn.10.1669135418753; Tue, 22 Nov 2022 08:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669135418; cv=none; d=google.com; s=arc-20160816; b=ETC90DsCPHA2sIlt62waPZoPXSXG9dLAzwLAHo2pbrS5byQAYmI9UfrkIC2xXBMIMg CnDdg4wa7JfxyvrQ+kyEy4vb1dgMYPQ0vPnMwVxocQMl/7CJ5qxuuXtvHUs8TZI7CXZW wZqlF3yE2lRpWbhkYGgplcGSY6djo7cXWC0XknY+F4fm+QT0fvpYpBV2ejJ4pxbHdCOD XVbasyjT+vJGPRLymaNV4cixlOrGZYm21Uc5coHFlW+JHAZIqhKsNYF7uM55L4ssDGrh mOuhVmak81T7rC0XnwZQkjPUDAteiXDtozvayC7KLUwC+9dg51Ue2ji5BPxQn9eRLtl+ bJEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2HaFudDaMDVTnrq9g6vTYOKijFH6XNF8q+9ygX8nBYA=; b=O3LbVOqHiA/Uta37PkCv0vJ4ecqJgEIGcA0fD/PjQnn428JOIamjY/q7icmq2hISq5 n+kZ4YEQ5OOs2mwZP2j7Cf9jEmjXMzr8RCietxGT6cQaiMmM65C/IkbdG+U1XTLXe8jU yw3znin/vHzXEZQGAKk4KIQRAJKJ6FxLeMtHJaPal9Sdy/KdptPPFtTGuua7XO3A4tCC cBDIkGHCDQu6vU11F9vAd0J2KGs8S3XAVRikKeXxcg3ronsWhYf7/uSR5mtwLYoDbB20 Z0+klgXYpvhPl308utwi7NTs6tXGLpQZpypoox2Rq8IYFMf7Zo30sgOCmu+++0fxH+ky iiFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fakECqQA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a170903125200b00187359fc95csi12495037plh.563.2022.11.22.08.43.25; Tue, 22 Nov 2022 08:43:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=fakECqQA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234253AbiKVQiS (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Tue, 22 Nov 2022 11:38:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232370AbiKVQiQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 22 Nov 2022 11:38:16 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C488CD2C4; Tue, 22 Nov 2022 08:38:15 -0800 (PST) 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) 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= 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 <jgross@suse.com>); Tue, 22 Nov 2022 16:38:13 +0000 From: Juergen Gross <jgross@suse.com> To: linux-kernel@vger.kernel.org, x86@kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Juergen Gross <jgross@suse.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Ard Biesheuvel <ardb@kernel.org>, Darren Hart <dvhart@infradead.org>, Andy Shevchenko <andy@infradead.org>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750215340934750312?= X-GMAIL-MSGID: =?utf-8?q?1750215340934750312?= |
Series |
x86/realmode: use a dummy trampoline for Xen PV guests
|
|
Message
Juergen Gross
Nov. 22, 2022, 4:38 p.m. UTC
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(-)