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] event channel in xenpaging

To: olaf@xxxxxxxxx
Subject: [Xen-devel] event channel in xenpaging
From: zhen shi <bickys1986@xxxxxxxxx>
Date: Wed, 28 Sep 2011 20:19:29 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Sep 2011 20:07:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RzsFhxEb/yNzYftr4kCokQ9V9LmBdI5Om5lFHOewwVo=; b=hf3FH1mciyWf6SowqMBEnYJptZLsSWfa9OJALXSDNUzOZLh3myv4oUhfb+5uyzOnLL z2uODpOb0Lh1L6Me5MC6v5/9S5LKUDV+xH/QiTWNjsDUU11MmiiJmbi08PtDbHIVQxK8 +TpRXPM46cB1aVxjaQSJR30wx1dv44hhYn+Uw=
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,Olaf,

I have some questions about event channel in Xenpaging to ask you.
1) In xenpaging it uses Inter-Domainain Commnication (IDC) between
dom0 and domU to build bidirectional connection,but I found there is
only an event channel notification from xen to dom0 when page faults
happens.It seems that xenpaging_resume_page()->xc_evtchn_notify()
doesn't make any difference.So why don't use vIRQ between dom0 and xen
instead of IDC between dom0 and domU?

2)In your latest patch,[PATCH 9 of 9] xenpaging: watch the domains
/xenpaging/num_pages xenstore value.I found some problems.
  a、In main(),you put the page_out process into while(1) and make the
following change.
     if ( interrupted )
    victims[i].gfn = INVALID_MFN;
    - else
    - evict_victim(paging, &victims[i], fd, i);
I think the" if ( interrupted )" should remove here.Because once
handling page_in requests,the related victims slot should clear,
then in evict_pages we can populate new page in this slot because in
evict_page() the condition as followings:
 /* Slot is allocated */
+ if ( victims[slot].gfn != INVALID_MFN )
+ continue;

b、In xenpaging_init (),when it goes to err,you add
"free(dom_path);free(watch_targetpages)" in PATCH 9,but I think we
should firstly judge if dom_path and watch_targetpages variables are
NULL.what's more ,if it initializes paging successfully,before "return
paging",we should free (dom_path),and free(watch_targetpages) in
xenpaging_teardown() lastly.
c、when initializing xenpaging fails,and goes to err,it returns NULL to
main() then exit main().
If it has already opened event channel,bind event notification,opened
connections to xen successfully when goes to err in
xenpaging_init(),how about dealing with these resources such as
xenpaging_teardown.

3)We have tested on Win7-32bit about 40vms to start xenpaging at the
same time.The vm is 1G 2VCPUS,and we page out 180M.Then we put 80-90%
memory pressure on each vm.About one hour later,there happens many
BSOD on vms.and most blue screen code is 0x... 7F or 0x...19. We guess
some special pages which systems need use to run may be paged out and
cause BSOD.and sometimes print out mmio information in messages.Do you
have any ideas about the BSOD on win7-32 bit vms?

I am looking forward to hearing from you. Thank you very much!  :)

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

<Prev in Thread] Current Thread [Next in Thread>