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-ia64-devel

[Xen-ia64-devel] [PATCH] Fix time services of EFI emulation

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] Fix time services of EFI emulation
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Fri, 10 Nov 2006 21:12:50 +0900
Delivery-date: Fri, 10 Nov 2006 04:13:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

When I shutdown two DomUs at the same time, the following error occurs 
in BS_code.
The root cause is, during shutdown process DomU writes hwclock and Xen 
emulates this with GetTime efi.runtime call, and in the above case, 
two GetTime calls are executed at the same time without any 
serialization.

(XEN) d 0xf000000007be0080 domid 35
(XEN) d 0xf000000007bd8080 domid 36
(XEN) vcpu 0xf000000007b50000 vcpu 0
(XEN) vcpu 0xf000000007c30000 vcpu 0
(XEN) 
(XEN) CPU 5
(XEN) 
(XEN) CPU 4
(XEN) psr : 0000121008226018 ifs : 800000000000038c ip  : [<f00000007f755521>]
(XEN) psr : 0000121008226018 ifs : 800000000000038c ip  : [<f00000007f755521>]
(XEN) ip is at ???
(XEN) unat: 0000000000000000 pfs : 000000000000038c rsc : 0000000000000000
(XEN) ip is at ???
(XEN) unat: 0000000000000000 pfs : 000000000000038c rsc : 0000000000000000
[snip]

Type       Start            End               # Pages          Attributes
BS_data    0000000000000000-0000000000000FFF  0000000000000001 0000000000000009
available  0000000000001000-0000000000006FFF  0000000000000006 0000000000000009
BS_data    0000000000007000-0000000000008FFF  0000000000000002 0000000000000009
available  0000000000009000-0000000000081FFF  0000000000000079 0000000000000009
RT_data    0000000000082000-0000000000083FFF  0000000000000002 8000000000000009
available  0000000000084000-0000000000084FFF  0000000000000001 0000000000000009
BS_data    0000000000085000-000000000009FFFF  000000000000001B 0000000000000009
RT_code    00000000000C0000-00000000000FFFFF  0000000000000040 8000000000000009
available  0000000000100000-000000000FF7FFFF  000000000000FE80 000000000000000B
BS_data    000000000FF80000-000000000FFFFFFF  0000000000000080 000000000000000B
available  0000000010000000-000000007D8FFFFF  000000000006D900 000000000000000B
BS_code    000000007D900000-000000007F97FFFF  0000000000002080 000000000000000B
available  000000007F980000-000000007F9FFFFF  0000000000000080 000000000000000B
[snip]


This patch serializes the execution of following efi.runtimes.
  - GetTime
  - SetTime
  - GetWakeTime
  - SetWakeTime

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

Best regards,
 Kan

Attachment: time_services_lock.patch
Description: Binary data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] Fix time services of EFI emulation, Masaki Kanno <=