public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Matteo Signorini <signorinimatteo@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: systemcalls and kvm ...correct me if I am wrong
Date: Mon, 08 Jun 2009 15:11:04 +0300	[thread overview]
Message-ID: <4A2CFFD8.5070903@redhat.com> (raw)
In-Reply-To: <bdf5bab30906080507p28c694fdl238f5f66f004c514@mail.gmail.com>

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


      reply	other threads:[~2009-06-08 12:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A2CFFD8.5070903@redhat.com \
    --to=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=signorinimatteo@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox