[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] x86/boot: Simplify size calculations in move_memory()
- To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 22 Oct 2024 20:19:06 -0400
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729642748; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=pSZTmUv6ej+VrvylZckjQ+3WLGWJeyGMReTfSjVMNDQ=; b=W5W6AnXc6k0Vfdct85P0JpfUu+uWrRHSf3aVbzYPTAmUBKRh1crh95CwF+WJyNRNCt8CYCRF1Dou+h4XiMl+w2L1G9fjb8B1oEXqIsyz3AbXO87eXwHnyXiT54TBZNUo8UQD7cijqItMoJxr40cHGLgqXMp3ufaY9M4C1YUOsxo=
- Arc-seal: i=1; a=rsa-sha256; t=1729642748; cv=none; d=zohomail.com; s=zohoarc; b=jaOryYsBQvBczumxKSV6TPQpO8R8880pYClRU+cvCacvoVDe2VUXGtXdcXwGZv6/SXem9GEmzepPhMnYG7fE/zNiG0GhZPNnoLBJJriIn7ZLqdFk+hnSUAWGa1sJruK3XOc15ojidlQz+VK12/dvX7mI6Qlj9iru11RVCI9firs=
- Cc: Jan Beulich <JBeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Wed, 23 Oct 2024 00:19:19 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 10/22/24 18:39, Andrew Cooper wrote:
While both src and dst are similar, src is mapped only accounting for src's
size, while dst is mapped based on the minimum of both. This means that in
some cases, an overly large mapping is requested for src.
Rework the sz calcuation to be symmetric, and leave an explanation of how
logic works.
No functional change.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Jan Beulich <JBeulich@xxxxxxxx>
CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
CC: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
Reviewed-by: Daniel P. Smith <dpsmith@xxxxxxxxxxxxxxxxxxxx>
|