public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* systemcalls and kvm ...correct me if I am wrong
@ 2009-06-07 10:02 Matteo Signorini
  2009-06-07 10:33 ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Matteo Signorini @ 2009-06-07 10:02 UTC (permalink / raw)
  To: kvm

Hi to all,

correct me if I am wrong but isn't it the following the logical
execution chain of a generic system call performed
in a Kvm guest?

Guest userspace application -> Guest kernel -> Host kernel (kvm) ->
Host userspace (Quemu) -> Host kernel ->
-> Host userspace (Quemu) -> Guest kernel -> Guest userspace application

Is there any detailed documentation on how this happens inside qemu-kvm?

thanks in advance,

Matteo

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

* Re: systemcalls and kvm ...correct me if I am wrong
  2009-06-07 10:02 systemcalls and kvm ...correct me if I am wrong Matteo Signorini
@ 2009-06-07 10:33 ` Avi Kivity
  2009-06-08 12:07   ` Matteo Signorini
  0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2009-06-07 10:33 UTC (permalink / raw)
  To: Matteo Signorini; +Cc: kvm

Matteo Signorini wrote:
> Hi to all,
>
> correct me if I am wrong but isn't it the following the logical
> execution chain of a generic system call performed
> in a Kvm guest?
>
> Guest userspace application -> Guest kernel -> Host kernel (kvm) ->
> Host userspace (Quemu) -> Host kernel ->
> -> Host userspace (Quemu) -> Guest kernel -> Guest userspace application
>
>   

No.  The actual path is

   guest userspace -> guest kernel -> guest userspace

The guest kernel might access emulated hardware, but usually it does not.

> Is there any detailed documentation on how this happens inside qemu-kvm?
>   

No.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


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

* Re: systemcalls and kvm ...correct me if I am wrong
  2009-06-07 10:33 ` Avi Kivity
@ 2009-06-08 12:07   ` Matteo Signorini
  2009-06-08 12:11     ` Avi Kivity
  0 siblings, 1 reply; 4+ messages in thread
From: Matteo Signorini @ 2009-06-08 12:07 UTC (permalink / raw)
  To: kvm

My doubt is:
 will int0x80 from Guest userspace bring me into Guest kernel space or
directly into kvm in the Host kernel?
 How can I trigger a jump from Guest to Host kvm at will?
 Then the way back from host kernel to guest is via vmenter/vmrun or
must be performed in a different way?

thanks in advance,

Matteo

2009/6/7 Avi Kivity <avi@redhat.com>:
> Matteo Signorini wrote:
>>
>> Hi to all,
>>
>> correct me if I am wrong but isn't it the following the logical
>> execution chain of a generic system call performed
>> in a Kvm guest?
>>
>> Guest userspace application -> Guest kernel -> Host kernel (kvm) ->
>> Host userspace (Quemu) -> Host kernel ->
>> -> Host userspace (Quemu) -> Guest kernel -> Guest userspace application
>>
>>
>
> No.  The actual path is
>
>  guest userspace -> guest kernel -> guest userspace
>
> The guest kernel might access emulated hardware, but usually it does not.
>
>> Is there any detailed documentation on how this happens inside qemu-kvm?
>>
>
> No.
>
> --
> Do not meddle in the internals of kernels, for they are subtle and quick to
> panic.
>
>

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

* Re: systemcalls and kvm ...correct me if I am wrong
  2009-06-08 12:07   ` Matteo Signorini
@ 2009-06-08 12:11     ` Avi Kivity
  0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2009-06-08 12:11 UTC (permalink / raw)
  To: Matteo Signorini; +Cc: kvm

Matteo Signorini wrote:
> My doubt is:
>  will int0x80 from Guest userspace bring me into Guest kernel space or
> directly into kvm in the Host kernel?
>   

Like I mentioned, guest kernel.

>  How can I trigger a jump from Guest to Host kvm at will?
>   

mmio/pio/vmcall

>  Then the way back from host kernel to guest is via vmenter/vmrun or
> must be performed in a different way?
>   

The normal way, vmlaunch/vmresume/vmrun.

> thanks in advance,
>
> Matteo
>
> 2009/6/7 Avi Kivity <avi@redhat.com>:
>   
>> Matteo Signorini wrote:
>>     
>>> Hi to all,
>>>
>>> correct me if I am wrong but isn't it the following the logical
>>> execution chain of a generic system call performed
>>> in a Kvm guest?
>>>
>>> Guest userspace application -> Guest kernel -> Host kernel (kvm) ->
>>> Host userspace (Quemu) -> Host kernel ->
>>> -> Host userspace (Quemu) -> Guest kernel -> Guest userspace application
>>>
>>>
>>>       
>> No.  The actual path is
>>
>>  guest userspace -> guest kernel -> guest userspace
>>
>> The guest kernel might access emulated hardware, but usually it does not.
>>
>>     
>>> Is there any detailed documentation on how this happens inside qemu-kvm?
>>>
>>>       
>> No.
>>
>> --
>> Do not meddle in the internals of kernels, for they are subtle and quick to
>> panic.
>>
>>
>>     
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


-- 
error compiling committee.c: too many arguments to function


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

end of thread, other threads:[~2009-06-08 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-07 10:02 systemcalls and kvm ...correct me if I am wrong Matteo Signorini
2009-06-07 10:33 ` Avi Kivity
2009-06-08 12:07   ` Matteo Signorini
2009-06-08 12:11     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox