qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] How does a system call work on QEMU?
@ 2009-05-13 18:41 helicoterus-elih
  2009-05-14  4:38 ` Mulyadi Santosa
  0 siblings, 1 reply; 15+ messages in thread
From: helicoterus-elih @ 2009-05-13 18:41 UTC (permalink / raw)
  To: qemu-devel


Paravirtualized Xen guest kernel is on ring1 so Xen must forward system calls to it and then guest kernel replies with a hypercall to Xen.
How does a system call work on QEMU? 
When a guest kernel wants to directly access to device or perform a sensitive but not privilege instruction, what's happened?

Thanks




^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [Qemu-devel] How does a system call work on QEMU?
@ 2009-05-14  6:50 helicoterus-elih
  2009-05-14 10:19 ` Paul Brook
  2009-05-14 14:57 ` Mulyadi Santosa
  0 siblings, 2 replies; 15+ messages in thread
From: helicoterus-elih @ 2009-05-14  6:50 UTC (permalink / raw)
  To: qemu-devel



> Which mode of Qemu operations do you refer to? if you refer to full
> MMU emulation (no KVM or kqemu involved then), then intercepting
> syscall is basically intercepting interrupt 80 hex or SYSENTER/SYSCALL
> into host user mode instruction during code translation.

Ok, I refer to full emulation.
When QEMU intercepts a system call what does it do? What type of translation or modification does it perform?




^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [Qemu-devel] How does a system call work on QEMU?
@ 2009-05-15  8:54 helicoterus-elih
  0 siblings, 0 replies; 15+ messages in thread
From: helicoterus-elih @ 2009-05-15  8:54 UTC (permalink / raw)
  To: qemu-devel





> > > Which mode of Qemu operations do you refer to? if
> you
> > refer to full
> > > MMU emulation (no KVM or kqemu involved then),
> then
> > intercepting
> > > syscall is basically intercepting interrupt 80
> hex or
> > SYSENTER/SYSCALL
> > > into host user mode instruction during code
> > translation.
> > 
> > Ok, I refer to full emulation.
> > When QEMU intercepts a system call what does it do?
> What
> > type of translation or modification does it perform?
> > 
So it this the architecture of qemu, emulator version?
QEMU is a process that gives to o.s.guest a virtual hw
layer.
Every guest will be run by a QEMU instance.

See picture schema I prepaired: http://yfrog.com/7gqemulayersj

So system calls go from a guest application to its
operating system that communicates with its virtual
hardware. QEMU receives a system call and software emulator
QEMU performs a system call in O.S. host. 
It is right?

Thanks




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-05-17 14:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-13 18:41 [Qemu-devel] How does a system call work on QEMU? helicoterus-elih
2009-05-14  4:38 ` Mulyadi Santosa
  -- strict thread matches above, loose matches on Subject: below --
2009-05-14  6:50 helicoterus-elih
2009-05-14 10:19 ` Paul Brook
2009-05-14 13:10   ` Heli
2009-05-14 16:40     ` Avi Kivity
2009-05-14 17:11       ` grisu46
2009-05-14 17:48         ` Avi Kivity
2009-05-14 18:00           ` grisu46
2009-05-15  4:49             ` Glauber Costa
2009-05-17  8:46           ` Heli
2009-05-17  9:31             ` Avi Kivity
2009-05-17 14:41             ` Fernando Carrijo
2009-05-14 14:57 ` Mulyadi Santosa
2009-05-15  8:54 helicoterus-elih

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).