On 7/24/07, Rusty Russell <[EMAIL PROTECTED]> wrote:
> On Mon, 2007-07-23 at 14:32 +0100, Daniel P. Berrange wrote:
> > As Avi
> > says I dont't see how a individual QEMU process could provide any meaningful
> > identifier itself aside from its PID whose uniqueness is guarenteed by the
> > OS on its behalf.
>
> Indeed.  I use it in my pr_guest() patch which replaces all those
> printks with:
>
> +/* The guest did something wrong/strange. */
> +#define pr_guest(vcpu, fmt, ...)                                       \
> +       do {                                                            \
> +               if (__printk_ratelimit(5*HZ, 10))                       \
> +                       printk(KERN_WARNING "kvm: %i: cpu%i " fmt,      \
> +                              (vcpu)->kvm->pid, (vcpu)->vcpu_id        \
> +                              , ## __VA_ARGS__);                       \
> +       } while(0)
>
> I'll polish it up and send it on.  I don't want Avi getting bored.
>

Looks like you will add pid into kvm struct? That is cool, and really
what I am looking for :-)


Thanks,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to