From: Avi Kivity <avi@redhat.com>
To: "Christian Bornträger" <borntraeger@de.ibm.com>
Cc: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>,
kvm@vger.kernel.org, cotte@de.ibm.com, heiko.carstens@de.ibm.com,
schwidefsky@de.ibm.com, Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: [PATCH 3/3] kvm-s390: streamline memslot handling
Date: Tue, 26 May 2009 12:27:26 +0300 [thread overview]
Message-ID: <4A1BB5FE.9070300@redhat.com> (raw)
In-Reply-To: <200905261031.12391.borntraeger@de.ibm.com>
Christian Bornträger wrote:
> Am Dienstag 26 Mai 2009 09:57:58 schrieb Avi Kivity:
>
>>> I could add that behaviour, but that could make our normal interrupt
>>> handling much slower. Therefore I don't want to call that function,
>>> but on the other hand I like the "skip if the request is already set"
>>> functionality and think about adding that in my loop.
>>>
>> I don't understand why it would affect your interrupt handling. We need
>>
>
> As far as I understand x86, every host interrupt causes a guest exit.
>
Yes.
> On s390 the SIE instruction is interruptible. On a host interrupt (like an
> IPI) the host interrupt handler runs and finally jumps back into the SIE
> instruction. The hardware will continue with guest execution. This has the
> advantage, that we dont have to load/save guest and host registers on host
> interrupts. (the low level interrupt handler saves the registers of the
> interrupted context)
>
Neat stuff. Wish I had something like that.
> In our low-level interrupt handler we do check for signal_pending,
> machine_check_pending and need_resched to leave the sie instruction. For
> anything else a the host sees a cpu bound guest always in the SIE instruction.
>
Okay, now I understand (and agree with) you multi-level kick thing.
Maybe we could do it like so:
Interrupt handler (on s390 only) checks vcpu->requests, handles the ones
it cans. If bits are still set, it exits to arch loop, which handles
the bits it cans. If bits are still set, it exits to the generic code
loop, which can finally exit to userspace.
Does this fit with s390 hardware?
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-05-26 9:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-20 13:34 [PATCH 0/3] kvm-s390: revised version of kvm-s390 guest memory handling ehrhardt
2009-05-20 13:34 ` [PATCH 1/3] kvm-s390: infrastructure to kick vcpus out of guest state ehrhardt
2009-05-20 13:34 ` [PATCH 2/3] kvm-s390: fix signal handling ehrhardt
2009-05-20 13:34 ` [PATCH 3/3] kvm-s390: streamline memslot handling ehrhardt
2009-05-24 14:39 ` Avi Kivity
2009-05-25 8:33 ` Christian Ehrhardt
2009-05-25 11:40 ` Christian Ehrhardt
2009-05-26 7:57 ` Avi Kivity
2009-05-26 8:31 ` Christian Bornträger
2009-05-26 9:27 ` Avi Kivity [this message]
2009-05-26 10:31 ` Christian Ehrhardt
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=4A1BB5FE.9070300@redhat.com \
--to=avi@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cotte@de.ibm.com \
--cc=ehrhardt@linux.vnet.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=schwidefsky@de.ibm.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.