From patchwork Wed Dec 18 16:09:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 11301201 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E90F14B7 for ; Wed, 18 Dec 2019 16:10:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6A6082176D for ; Wed, 18 Dec 2019 16:10:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="N/hNdTb6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6A6082176D Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ihbtG-0004mY-TO; Wed, 18 Dec 2019 16:09:34 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ihbtG-0004mT-55 for xen-devel@lists.xenproject.org; Wed, 18 Dec 2019 16:09:34 +0000 X-Inumbo-ID: c6cd50c7-21b0-11ea-90bb-12813bfff9fa Received: from smtp-fw-2101.amazon.com (unknown [72.21.196.25]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id c6cd50c7-21b0-11ea-90bb-12813bfff9fa; Wed, 18 Dec 2019 16:09:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1576685374; x=1608221374; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9cG7S6gCd/akoUItnSjeFPXRoADzztwyvT/Hz80pN3k=; b=N/hNdTb6SpZ3MR7MjqlvZhPTq4C0kj+4S8mghiAq7QJKY6T4/pesrisN xLPzzWH0O4u5935MXL0q9g2rjcHz4NaET+qiZFPBzv19tCDoUf0Y0uFF4 zc2U/ApTncYn9f4hdXvF6qUmqWUBLeljfsp0We6o8XGBBgff/J1V+hvs/ Q=; IronPort-SDR: zRljJ65UuE9nc8aSuIw2ZR63VCjGPUmOyRiHSbHwX5y6SZBzB8f/J+WuQBvj9SmSMTVixl5Sqf t68QbIbtWGlQ== X-IronPort-AV: E=Sophos;i="5.69,330,1571702400"; d="scan'208";a="9128918" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2a-8549039f.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 18 Dec 2019 16:09:33 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-8549039f.us-west-2.amazon.com (Postfix) with ESMTPS id C7BF0A1D1D; Wed, 18 Dec 2019 16:09:31 +0000 (UTC) Received: from EX13D32EUB003.ant.amazon.com (10.43.166.165) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 18 Dec 2019 16:09:31 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D32EUB003.ant.amazon.com (10.43.166.165) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 18 Dec 2019 16:09:30 +0000 Received: from u2f063a87eabd5f.cbg10.amazon.com (10.125.106.135) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 18 Dec 2019 16:09:28 +0000 From: Paul Durrant To: Date: Wed, 18 Dec 2019 16:09:25 +0000 Message-ID: <20191218160926.12538-1-pdurrant@amazon.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH] x86/save: reserve HVM save record numbers that have been consumed... X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Paul Durrant , Wei Liu , Jan Beulich , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" ...for patches not (yet) upstream. This patch is simply reserving save record number space to avoid the risk of clashes between existent downstream changes made by Amazon and future upstream changes which may be incompatible. Signed-off-by: Paul Durrant Reviewed-by: Wei Liu --- Cc: Jan Beulich Cc: Andrew Cooper Cc: Wei Liu Cc: "Roger Pau Monné" --- xen/include/public/arch-x86/hvm/save.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/include/public/arch-x86/hvm/save.h b/xen/include/public/arch-x86/hvm/save.h index b2ad3fcd74..9c7b86678e 100644 --- a/xen/include/public/arch-x86/hvm/save.h +++ b/xen/include/public/arch-x86/hvm/save.h @@ -639,10 +639,12 @@ struct hvm_msr { #define CPU_MSR_CODE 20 +/* Range 22 - 40 reserved for Amazon */ + /* * Largest type-code in use */ -#define HVM_SAVE_CODE_MAX 20 +#define HVM_SAVE_CODE_MAX 40 #endif /* __XEN_PUBLIC_HVM_SAVE_X86_H__ */