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] [Q] About xc.domain_destroy_hook

To: "Masaki Kanno" <kanno.masaki@xxxxxxxxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel] [Q] About xc.domain_destroy_hook
From: "Zhang, Xing Z" <xing.z.zhang@xxxxxxxxx>
Date: Thu, 31 Jan 2008 13:52:21 +0800
Delivery-date: Wed, 30 Jan 2008 21:54:20 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <31C863A74A8DECkanno.masaki@xxxxxxxxxxxxxx>
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: <31C863A74A8DECkanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Achjp5T9LAMp3HNpQkSTUDcm+KelMwAJO5Yg
Thread-topic: [Xen-ia64-devel] [Q] About xc.domain_destroy_hook
Hi Kan:
        When I implemented NVRAM, I found there were many difference shutdown 
ways for HVM domain. So I added hook on each flow. 
        Maybe Xend code merged some shutdown paths. You can try to remove it to 
see if NVRAM still works. If fine, I think it is removable. Thx.

Good good study,day day up ! ^_^
-Wing(zhang xin)

OTC,Intel Corporation
>-----Original Message-----
>From: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
>[mailto:xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx] On
>Behalf Of Masaki Kanno
>Sent: 2008?1?31? 9:19
>To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>Subject: [Xen-ia64-devel] [Q] About xc.domain_destroy_hook
>
>Hi,
>
>I have a question.
>
>XendDomainInfo.py:
>    def shutdown(self, reason):
>        """Shutdown a domain by signalling this via
>xenstored."""
>        log.debug('XendDomainInfo.shutdown(%s)', reason)
><<snip>>
>        # HVM domain shuts itself down only if it has PV drivers
>        if self.info.is_hvm():
>            hvm_pvdrv = xc.hvm_get_param(self.domid,
>HVM_PARAM_CALLBACK_IRQ)
>            if not hvm_pvdrv:
>                code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason]
>    here! -->   xc.domain_destroy_hook(self.domid)
>                log.info("HVM save:remote shutdown dom %d!",
>self.domid)
>                xc.domain_shutdown(self.domid, code)
>
>[Q] The line does not need, does it?
>
>
>When I tested xm shutdown command for an HVM domain, I saw the
>following error message in xend-debug.log.
>
>  Nvram save successful!
>  ERROR Internal error: Save to nvram fail!
>   (9 = Bad file descriptor)
>
>Also same message was seen in xm reboot command.
>
>  Nvram save successful!
>  ERROR Internal error: Save to nvram fail!
>   (9 = Bad file descriptor)
>
>I think that xc.domain_destroy_hook() is called twice.
>
>Best regards,
> Kan
>
>
>
>_______________________________________________
>Xen-ia64-devel mailing list
>Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-ia64-devel

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

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