From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: Event from dom0 Date: Thu, 18 Aug 2011 09:33:49 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: "Jinesh M.K" Cc: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Aug 17, 2011 at 12:52 PM, Jinesh M.K wrote: > Hi, > > How to capture a event(eg:file copying) from dom0? > Well, there is a technique called "system call intercepting". File copying or any other kinds of operation need the help from the kernel -- that is, they will issue syscalls. If you can intercept syscall in Xen, then Xen can tell your little daemon in Dom0 what's happening in DomU. It is doable, because my colleage has done something similar before. However, this kind of operation slows down the whole system, because it requires virtual machine introspection to eliminate semantic gap between Dom0 and DomU, and the frequent switching from Xen, Dom0 and DomU is certainly a performance hit. Or you can try Pasi's way, depending on your need. Wei.