From nobody Thu Apr 25 19:21:33 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1580835367590141.3969855212075; Tue, 4 Feb 2020 08:56:07 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iz1UD-0001ZP-4T; Tue, 04 Feb 2020 16:55:41 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iz1UC-0001ZI-3y for xen-devel@lists.xenproject.org; Tue, 04 Feb 2020 16:55:40 +0000 Received: from mail-wr1-x442.google.com (unknown [2a00:1450:4864:20::442]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 2bed0198-476f-11ea-b211-bc764e2007e4; Tue, 04 Feb 2020 16:55:39 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id a6so23950598wrx.12 for ; Tue, 04 Feb 2020 08:55:39 -0800 (PST) Received: from localhost.localdomain (41.142.6.51.dyn.plus.net. [51.6.142.41]) by smtp.gmail.com with ESMTPSA id d204sm4454842wmd.30.2020.02.04.08.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2020 08:55:38 -0800 (PST) X-Inumbo-ID: 2bed0198-476f-11ea-b211-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=q6Fu6hJYGLP58TqAQdMSMUYI1G0FOQ8LhqTm9zEnrmw=; b=gxeWrfpdTVEA6+x4vPFgU+9JZp2DznjH/HV696FXCYIKVp/3YQxqu4ic/jNXEoSvL0 UZKexqFhkhNHc9arWq27N+ZjKllbs7hjGL2jWo44tksTGMSU3029y18S87iLDI+oj2N6 LTPig2xca71mizcqf2hID1thDA+KHfzwtqTEHjBOhYedVEeDUVGbB82KTnNoPiqwrzi0 dJ33vF2+TuAr1HT3FQlh3wVXk7qYSn8nWQfioClV6U13xCgp7E6eE11+oMzng1vrB+lV m9Z/ZBjoFIHV7aS8Lq96dpH6aveF6aqsrL3CXWDy/i0LnCE9qjnABifyxjsGH4Uwfo6Q P3nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=q6Fu6hJYGLP58TqAQdMSMUYI1G0FOQ8LhqTm9zEnrmw=; b=GFy8QSoLWS45G4000xxCW/JQutfzvpADxpWsdYg9P+SGKCQc6LzwieX23v0jmzLw5c Q9d5DlAq6ibBy/b2WH3ahDRXxZIyTEqqXHSpLhSaQkUx8G3UO5Ep47NnR0aTY9YWSu+1 8rkMZ98U7HrDV6VlgcMZOrsxULeoHqumhf/upIFIH+fYFVCpl2N07U3sdM4WfVGsjpDf s+M4mK/CgQSKsdNd7lxZBui6/zF6Ff7AxOfB4h8Qdm3HnxvsX3ummxp9q9YECUXBV5Pq ssKAvTSsTk0OLtmJf8BE2XozSfhOQQX7+VfaQh1ZnBkNvGQS/nYVAt6DqFVu/m76igIG 4/2A== X-Gm-Message-State: APjAAAUcAwIgwJBr4oNaXV66gZvgXMhbDvEOPrJvAwWf7PAzzOFeCM69 nZIzENaTVdPrIbNrqa86irUT6rpsYv0= X-Google-Smtp-Source: APXvYqxft+9wGltIENf9EPmdHmmjTlekwN7cHl/+IKKj+FtSzQdRxFyyPca9XW7giUGqSg1zxroi2A== X-Received: by 2002:adf:f8c8:: with SMTP id f8mr23257312wrq.331.1580835338769; Tue, 04 Feb 2020 08:55:38 -0800 (PST) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Tue, 4 Feb 2020 16:55:35 +0000 Message-Id: <20200204165535.17214-1-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86: fix off-by-one error when printing memory ranges X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Wei Liu , Wei Liu , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Wei Liu Acked-by: Andrew Cooper --- xen/arch/x86/e820.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index b9f589cac3..d67387f137 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -94,7 +94,7 @@ static void __init print_e820_memory_map(struct e820entry= *map, unsigned int ent for (i =3D 0; i < entries; i++) { printk(" %016Lx - %016Lx ", (unsigned long long)(map[i].addr), - (unsigned long long)(map[i].addr + map[i].size)); + (unsigned long long)(map[i].addr + map[i].size) - 1); switch (map[i].type) { case E820_RAM: printk("(usable)\n"); --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel