[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests |
Date: |
Tue, 11 Apr 2017 20:23:18 +0200 |
> Am 11.04.2017 um 19:10 schrieb Jim Mattson <address@hidden>:
>
> This might be more useful if it could be dynamically toggled on and
> off, depending on system load.
What would trapping mwait (currently) buy you?
As it stands today, before this patch, mwait is simply implemented as a nop, so
enabling the trap just means you're wasting as much cpu time, but never send
the pCPU idle. With this patch, the CPU at least has the chance to go idle.
Keep in mind that this patch does *not* advertise the mwait cpuid feature bit
to the guest.
What you're referring to I guess is actual mwait emulation. That is indeed more
useful, but a bigger patch than this and needs some more thought on how to
properly cache the monitor'ed pages.
Alex
- [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Alexander Graf, 2017/04/11
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Gabriel L. Somlo, 2017/04/11
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Jim Mattson, 2017/04/11
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests,
Alexander Graf <=
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Jim Mattson, 2017/04/12
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Alexander Graf, 2017/04/12
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Jim Mattson, 2017/04/12
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Michael S. Tsirkin, 2017/04/12
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Paolo Bonzini, 2017/04/21
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Alexander Graf, 2017/04/21
- Re: [Qemu-devel] [PATCH v6] kvm: better MWAIT emulation for guests, Paolo Bonzini, 2017/04/21