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] capturing SIGKILL in DomU

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] capturing SIGKILL in DomU
From: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
Date: Mon, 4 Oct 2010 14:03:34 -0500
Delivery-date: Mon, 04 Oct 2010 12:05:14 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=FhJwHbsEIvWf+a08ddLnlcknRZKw1k+vvwF/fZl3QCE=; b=TyZSxgYeMFlTM/giXkbOAXh16vUi+jlTGAQIpql6vqlQ5Lxe6sg+pZ69kaYoi+UlyY DOAGqwH1bG3S+H6QJ/Ub9n4WJ4nEobLm8lwPX7jwRcxfOuykirRKBy5QXHsMx2U6qWDZ fQxKRheCkLr1GRIkOoxpC1ZxJvO46GL9Ryyxo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nTNs19F2jCXM3b9w6RDd+qzcm3VLKUn9NAMQJTTNU7dgBjeLDMLi/rvBWc/OlIlQGE QA3WjoULmKmoZCSeLxDNBHdCJmQthmaIj57AlziLsAJ5eZZAo1BympXhXdwa89wODM8i MuK8WL1z45+TdKtHXJ/jij58dLRIz16XY762k=
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,

I am trying to capture SIGKILL through event channel.

On my Dom0, the following process is running (remaining code in attachment).


int main(void){
   
    int ret, dom, remote_dom;
  
    //initialize domains
    dom=0;
    remote_dom=2;
   
    //create the event channel
    ret = create_channel(dom, remote_dom);
   
   
    if (0 == ret) {
        printf("\n Event Channel established successfully \n");
    } else {
        return -1;    //EVENT_CHANNEL_CREATION_FAILED
    }
   
    //wait 20 seconds for an event to occur in DomU
    wait_for_event(20);
   
    //close the opened interfaces
    close_channel();   
      
    return 0;
  
}

While this process is running; I killed a process in DomU using `kill SIGKILL pid`

How can I capture this event (occured in DomU) at the Dom0. I watched /dev/xen/evtchn, but no notification.


--
Srujan D. Kotikela

Attachment: EcTest.c
Description: Text Data

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