WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix to save CPU affinity for xm save/restore

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix to save CPU affinity for xm save/restore
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Fri, 14 Nov 2008 15:51:53 +0900
Cc: jdenemar@xxxxxxxxxx
Delivery-date: Thu, 13 Nov 2008 22:52:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

CPU affinity of a domain is saved into a checkpoint file by this patch, 
then VCPUs are repinned when the domain is restored.

# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                 10     0     1   -b-      19.5 1
vm1                                 10     1     0   -b-      16.0 0
# xm save vm1 ~/vm1.checkpoint
# xm restore ~/vm1.checkpoint 
# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                 11     0     1   -b-       0.0 1
vm1                                 11     1     0   -b-       0.0 0


# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                 12     0     1   -b-      18.4 1
vm1                                 12     1     0   -b-      16.7 0
# xm suspend vm1
# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                        0                   0.0 1
vm1                                        1                   0.0 0
# xm resume vm1
# xm vcpu-list vm1
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
vm1                                 13     0     1   -b-       0.0 1
vm1                                 13     1     0   -b-       0.0 0


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: restore_cpus_affinity.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix to save CPU affinity for xm save/restore, Masaki Kanno <=