From mboxrd@z Thu Jan 1 00:00:00 1970 From: MaoXiaoyun Subject: Win2003R2 64 suspend failed in self live migration Date: Wed, 15 Jun 2011 20:05:35 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1369176863==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen devel Cc: james.harper@bendigoit.com.au List-Id: xen-devel@lists.xenproject.org --===============1369176863== Content-Type: multipart/alternative; boundary="_80cabd01-9547-42cb-90bc-4102dd820fa1_" --_80cabd01-9547-42cb-90bc-4102dd820fa1_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit Hi James; I've been testing Windows HVM live migration for a while, OS type covers 2003, and 2008. It works well most of time. I mean migration been two physical host. But 2003R2 64 bit failed on self live migration. (VM migration on the same host) After instal debug version PV driver inside VM, not debug log show up. Later I learnt that, in your code you implied that the debug routine could not be hooked since "// can't patch IDT on AMD64 "(in xenpci_dbprint.c XenPci_HookDbgPrint()) I was able to get the log output simply by redefine the KdPrint macro like below. But unfortunately , VM is suffuring hang now and then. So is it proper to do this, or how to obtain 64bit log properly? As for self migration, I've noticed that VM is able to migrate once, but after migration, the network is in trouble, VM can not access outside. It looks like xennet is not function properly. Meanwhile, it looks like "a fake arp" is needed after migration, as linux pv. I shall dig more, but currently the hang in log brother me a lot. Could you kindly offer me some help? Thanks. ----------debug log ---- void xmaoDPrint(PCH Format, ...); #undef KdPrint #define KdPrint(A) xmaoDPrint void xmaoDPrint(PCHAR fmt, ...){ char buf[4096]; va_list argptr; memset(buf, 0, 4096); va_start(argptr, fmt); RtlStringCchVPrintfA(buf, 4095, fmt, argptr); va_end(argptr); XenDbgPrint(buf, (ULONG)strlen(buf)); return; --_80cabd01-9547-42cb-90bc-4102dd820fa1_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 8bit Hi James;
 
     I've been testing Windows HVM live migration for a while, OS type covers 2003, and 2008.
     It works well most of time. I mean migration been two physical host.
     But 2003R2 64 bit failed on self live migration. (VM migration on the same host)
 
     After instal debug version PV driver inside VM, not debug log show up.
     Later I learnt that, in your code  you implied that the debug routine could not be hooked since
     "// can't patch IDT on AMD64 "(in xenpci_dbprint.c XenPci_HookDbgPrint())
 
      I was able to get the log output simply by redefine the KdPrint macro like below. But unfortunately
, VM is suffuring hang now and then. 
 
      So is it proper to do this, or how to obtain 64bit log properly?
       As for self migration, I've noticed that VM is able to migrate once, but after migration, the network
is in trouble, VM can not access outside.  It looks like xennet is not function properly. Meanwhile, it looks
like "a fake arp" is needed after migration, as linux pv.
 
        I shall dig more, but currently the hang in log brother me a lot.
        Could you kindly offer me some help?
        Thanks.
 
----------debug log ----       
 
void xmaoDPrint(PCH Format, ...);
#undef KdPrint
#define KdPrint(A)  xmaoDPrint
void xmaoDPrint(PCHAR fmt, ...){
 char buf[4096];
  va_list argptr;
 memset(buf, 0, 4096);
  va_start(argptr, fmt);
  RtlStringCchVPrintfA(buf, 4095, fmt, argptr);
  va_end(argptr);
 XenDbgPrint(buf, (ULONG)strlen(buf));
 return;

 
--_80cabd01-9547-42cb-90bc-4102dd820fa1_-- --===============1369176863== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1369176863==--