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-changelog

[Xen-changelog] sync_lazy_execstate functions are now all arch-specific.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] sync_lazy_execstate functions are now all arch-specific. We may want
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 01 Apr 2005 09:40:25 +0000
Delivery-date: Fri, 01 Apr 2005 10:05:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1418, 2005/04/01 10:40:25+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        sync_lazy_execstate functions are now all arch-specific. We may want
        to finetune their behaviour later.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 arch/ia64/xenmisc.c |    3 +++
 arch/x86/domain.c   |   10 ++++++++++
 include/xen/sched.h |    4 ++--
 3 files changed, 15 insertions(+), 2 deletions(-)


diff -Nru a/xen/arch/ia64/xenmisc.c b/xen/arch/ia64/xenmisc.c
--- a/xen/arch/ia64/xenmisc.c   2005-04-01 05:05:36 -05:00
+++ b/xen/arch/ia64/xenmisc.c   2005-04-01 05:05:36 -05:00
@@ -54,6 +54,9 @@
 
 /* calls in xen/common code that are unused on ia64 */
 
+void sync_lazy_execstate_cpuset(unsigned long cpuset) {}
+void sync_lazy_execstate_all(void) {}
+
 int grant_table_create(struct domain *d) { return 0; }
 void grant_table_destroy(struct domain *d)
 {
diff -Nru a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     2005-04-01 05:05:36 -05:00
+++ b/xen/arch/x86/domain.c     2005-04-01 05:05:36 -05:00
@@ -864,6 +864,16 @@
     return 1;
 }
 
+void sync_lazy_execstate_cpuset(unsigned long cpuset)
+{
+    flush_tlb_mask(cpuset);
+}
+
+void sync_lazy_execstate_all(void)
+{
+    flush_tlb_all();
+}
+
 unsigned long __hypercall_create_continuation(
     unsigned int op, unsigned int nr_args, ...)
 {
diff -Nru a/xen/include/xen/sched.h b/xen/include/xen/sched.h
--- a/xen/include/xen/sched.h   2005-04-01 05:05:36 -05:00
+++ b/xen/include/xen/sched.h   2005-04-01 05:05:36 -05:00
@@ -255,8 +255,8 @@
  * Force loading of currently-executing domain state on the specified set
  * of CPUs. This is used to counteract lazy state switching where required.
  */
-#define sync_lazy_execstate_cpuset(_cpuset) flush_tlb_mask(_cpuset)
-#define sync_lazy_execstate_all()           flush_tlb_all()
+extern void sync_lazy_execstate_cpuset(unsigned long cpuset);
+extern void sync_lazy_execstate_all(void);
 extern int __sync_lazy_execstate(void);
 
 extern void context_switch(

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] sync_lazy_execstate functions are now all arch-specific. We may want, BitKeeper Bot <=