* Help in fixing a issue
@ 2016-02-05 10:15 PREETI MISHRA
2016-02-05 10:48 ` Wei Liu
0 siblings, 1 reply; 4+ messages in thread
From: PREETI MISHRA @ 2016-02-05 10:15 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 453 bytes --]
I have a patch in Xen which stores some information of VM process. I have
another program running in Dom0 which intercept this information.
i) I want to configure my patch running in Xen to send the alert
notification to program running in Dom0 to read data, probably using event
channels. How to configure event channel?
ii) Which API or command will be used to read the data from patch buffer.
I am running xen 4.6 in ubuntu 14.04
regards,
Preeti
[-- Attachment #1.2: Type: text/html, Size: 1895 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help in fixing a issue
2016-02-05 10:15 Help in fixing a issue PREETI MISHRA
@ 2016-02-05 10:48 ` Wei Liu
[not found] ` <CAMOnYFn2ZH+aN1XJT=MJtrz_GfbiwoSuwFkQMg1a-porTLRR=Q@mail.gmail.com>
2016-02-05 11:21 ` Wei Liu
0 siblings, 2 replies; 4+ messages in thread
From: Wei Liu @ 2016-02-05 10:48 UTC (permalink / raw)
To: PREETI MISHRA; +Cc: wei.liu2, xen-devel
On Fri, Feb 05, 2016 at 09:15:52PM +1100, PREETI MISHRA wrote:
> I have a patch in Xen which stores some information of VM process. I have
> another program running in Dom0 which intercept this information.
>
I'm not sure I can parse this sentence. It's too vague for what you want
to do. For one, I don't know what "VM process" is.
> i) I want to configure my patch running in Xen to send the alert
> notification to program running in Dom0 to read data, probably using event
> channels. How to configure event channel?
> ii) Which API or command will be used to read the data from patch buffer.
>
If you're writing user space program, code in QEMU might be a good
reference.
Please search for files like "xen_nic.c" in QEMU source code and start
from there.
You can also explore various Xen driver code inside Linux if you're
keen.
Another thing that might be of interest to you is a program lives in
xen.git called xentrace. It extracts buffer from hypervisor, which might
be what you need.
Wei.
> I am running xen 4.6 in ubuntu 14.04
>
> regards,
>
> Preeti
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help in fixing a issue
[not found] ` <CAMOnYFn2ZH+aN1XJT=MJtrz_GfbiwoSuwFkQMg1a-porTLRR=Q@mail.gmail.com>
@ 2016-02-05 11:08 ` Wei Liu
0 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2016-02-05 11:08 UTC (permalink / raw)
To: PREETI MISHRA; +Cc: Xen-devel, Wei Liu
Add back xen-devel, please use "reply-all" in the future.
And please don't top-post.
On Fri, Feb 05, 2016 at 10:01:57PM +1100, PREETI MISHRA wrote:
> Thanks for the reply,
>
> actually, I have a virtual machine in which some processes are running. I
> want to analysis their behavior using VMI at xen.
>
Have you checked out libvmi in this case?
> My tool has two components:i) xen patch running at hypervisor ii) analyzing
> component running at Dom0
>
> 1. Xen patch is responsible for collecting the system call information of a
> monitored process. It can be syscall no and process id.
> - how to take this information? //particularly i want to trap any
> execution of monitored programs.
> - how to store this information in buffer?
> -how to send alert to my another daemon (analyzing component)
> running in Dom0.
See xentrace / xenanalyze in xen.git.
> 2. On receiving alert, analyzing component perform analysis over the
> collected data.
> - how to send the buffer information (pid and system call no) to
> analyzing component?
>
Anyway, I'm not expert on this. I will let other people to have a look.
My gut feeling is that libvmi should be the way to go.
Wei.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help in fixing a issue
2016-02-05 10:48 ` Wei Liu
[not found] ` <CAMOnYFn2ZH+aN1XJT=MJtrz_GfbiwoSuwFkQMg1a-porTLRR=Q@mail.gmail.com>
@ 2016-02-05 11:21 ` Wei Liu
1 sibling, 0 replies; 4+ messages in thread
From: Wei Liu @ 2016-02-05 11:21 UTC (permalink / raw)
To: PREETI MISHRA; +Cc: wei.liu2, xen-devel
BTW please check out:
http://wiki.xen.org/wiki/Asking_Xen_Devel_Questions
Wei.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-05 11:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-05 10:15 Help in fixing a issue PREETI MISHRA
2016-02-05 10:48 ` Wei Liu
[not found] ` <CAMOnYFn2ZH+aN1XJT=MJtrz_GfbiwoSuwFkQMg1a-porTLRR=Q@mail.gmail.com>
2016-02-05 11:08 ` Wei Liu
2016-02-05 11:21 ` Wei Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).