qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to get guestOS's information


From: Rob Landley
Subject: Re: [Qemu-devel] How to get guestOS's information
Date: Thu, 26 Oct 2006 12:21:00 -0400
User-agent: KMail/1.9.1

On Thursday 26 October 2006 3:23 am, KazuyaMatsunaga wrote:
> Hello,
> 
> It is impolite to write an unexpected letter.

Compared to the mountains of spam I get every day?  Not really. :)

> I am a college student in  
> Japan. I belong to information processing system laboratory, and I work on 
> intrusion detection system. We are developing intrusion detection system 
> using system calls. Now, it operates only on Linux. I would like to operate 
> it in more platforms. I think it is possible to found guest OS’s 
> abnormality by observing it from the hostOS. I would be extremely happy if 
> it could be operated on the Qemu. Do you think that it is possible? Now, my 
> system uses only processID and frequency of system calls. In a word, I would 
> like to know how to get gestOS’s information (processID and frequency of 
> system calls).

If your guest os is using sysenter you could hook that and see how often it's 
getting called.  Or perhaps intercept interrupt 80.

That's about the end of my useful suggestions, though.  Unfortunately 
ProcessID is an abstraction that QEMU doesn't know anything about (it's 
translating machine language instructions and emulating hardware; what it's 
_doing_ is another matter).  Trying to get QEMU to do it is a bit like trying 
to add hardware to your system to determine which user accounts are accessing 
your hard drive.  Your PCI bus doesn't know what a user account is: it's at 
the wrong level and that information just isn't present there.

You'd have to modify the OS you're running to collect that info, unless you 
can figure out execatly where in memory it's stored and add some kind of 
trace to monitor that memory location.  (And that location could easily 
change each time you reboot the system.)

I'm guessing you modified Linux to collect this information.  To get Windows 
or Solaris to do it, you'd have to modify those OSes too.

Rob
-- 
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery




reply via email to

[Prev in Thread] Current Thread [Next in Thread]