This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH] let set_phys_to_machine return the old entry

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] let set_phys_to_machine return the old entry
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Thu, 20 Apr 2006 14:34:13 -0400
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxx>
Delivery-date: Thu, 20 Apr 2006 11:34:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
The attached patch makes set_phys_to_machine(pfn,mfn) return the old
entry in the array, such that the old entry can be restored again using
the same call. If the feature XENFEAT_auto_translate_physmap is not
enabled, then these two calls will end up in no-op relative to changes
to the phys_to_machine_mapping array.

There's currently only one occurrence where remembering the entry from
the array is necessary and this is in the vTPM backend driver.

This patch builds on top of the previously posted TPM backend patch.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>

Attachment: set_phys_to_machine.diff
Description: Text Data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>