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

RE: [Xen-ia64-devel] RFC: Remove dead code?

To: "Alex Williamson" <alex.williamson@xxxxxx>
Subject: RE: [Xen-ia64-devel] RFC: Remove dead code?
From: "Dong, Eddie" <eddie.dong@xxxxxxxxx>
Date: Tue, 5 Feb 2008 07:19:14 +0800
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 04 Feb 2008 15:20:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1202138735.6709.4.camel@lappy>
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>
References: <10EA09EFD8728347A513008B6B0DA77A02BA0350@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1202138735.6709.4.camel@lappy>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AchnQyXF7E4dZ2IMRmCQyCr4OR11GgAQRo/w
Thread-topic: [Xen-ia64-devel] RFC: Remove dead code?
Alex Williamson wrote:
> On Fri, 2008-02-01 at 13:16 +0800, Dong, Eddie wrote:
>> The following code is not used anymore, and I think it is also a
>> legacy issue when people are debugging on SKI simulator.
>> Should we simplify it?
>> thx, eddie
> 
>    Yes, I haven't run Xen on ski for a long time, and it's probably
> cruft that we don't want to push upstream.  Please send a sign-off
> for the below and I'll apply it.  Thanks,  
> 
>       Alex
> 
Thanks, here it is.
Eddie




Remove ski simulator related stuff since it is for early
Xen development stage, and no longer necessary for now.

Signed-off-by: YaoZu (Eddie) Dong <eddie.dong@xxxxxxxxx>


diff -r 0e62beb4c36a arch/ia64/xen/Makefile
--- a/arch/ia64/xen/Makefile    Fri Feb 01 09:33:32 2008 +0800
+++ b/arch/ia64/xen/Makefile    Fri Feb 01 12:59:24 2008 +0800
@@ -2,7 +2,7 @@
 # Makefile for Xen components
 #
 
-obj-y := hypercall.o xenivt.o xenentry.o xensetup.o xenpal.o xenhpski.o
\
+obj-y := hypercall.o xenivt.o xenentry.o xensetup.o xenpal.o \
         hypervisor.o util.o xencomm.o xcom_hcall.o \
         xcom_privcmd.o xen_dma.o
 
diff -r 0e62beb4c36a arch/ia64/xen/xenhpski.c
--- a/arch/ia64/xen/xenhpski.c  Fri Feb 01 09:33:32 2008 +0800
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-#include <linux/kernel.h>
-#include <asm/hypervisor.h>
-
-int
-running_on_sim(void)
-{
-       int i;
-       long cpuid[6];
-
-       for (i = 0; i < 5; ++i)
-               cpuid[i] = xen_get_cpuid(i);
-       if ((cpuid[0] & 0xff) != 'H') return 0;
-       if ((cpuid[3] & 0xff) != 0x4) return 0;
-       if (((cpuid[3] >> 8) & 0xff) != 0x0) return 0;
-       if (((cpuid[3] >> 16) & 0xff) != 0x0) return 0;
-       if (((cpuid[3] >> 24) & 0x7) != 0x7) return 0;
-       return 1;
-}
-

Attachment: pv_ops_cleanup2.patch
Description: pv_ops_cleanup2.patch

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>