Re: Reset problem vs. MMIO emulation, hypercalls, etc...

2012-08-02 Thread Alexander Graf
Avi, Marcelo, Jan? Any thoughts on this? Alex On 01.08.2012, at 05:17, Benjamin Herrenschmidt wrote: Hi Avi ! We identified a problem on powerpc which seems to actually be a generic issue, and Alex suggested we propose a generic fix. I want to make sure we are on the right track first

Re: [PATCH 0/3] KVM: Integrate rmap and rmap_pde

2012-08-02 Thread Avi Kivity
On 08/01/2012 11:59 AM, Takuya Yoshikawa wrote: This has been already discussed on other threads and the concept itself is not so controversial. Looks good. But since I know that the last patch of this series conflicts with Paul's recent work, I want to find a way to synchronize with his

Re: Reset problem vs. MMIO emulation, hypercalls, etc...

2012-08-02 Thread Benjamin Herrenschmidt
On Thu, 2012-08-02 at 12:46 +0200, Alexander Graf wrote: Avi, Marcelo, Jan? Any thoughts on this? Had a chat with Anthony and it looks like we can do it using the MP state stuff which we don't currently use on powerpc, at least it seems that's how x86 breaks IO emulation on reset. Cheers, Ben.

Re: Reset problem vs. MMIO emulation, hypercalls, etc...

2012-08-02 Thread Avi Kivity
On 08/01/2012 06:17 AM, Benjamin Herrenschmidt wrote: Hi Avi ! We identified a problem on powerpc which seems to actually be a generic issue, and Alex suggested we propose a generic fix. I want to make sure we are on the right track first before proposing an actual patch as we would like

Re: Reset problem vs. MMIO emulation, hypercalls, etc...

2012-08-02 Thread Alexander Graf
On 02.08.2012, at 14:35, Avi Kivity wrote: On 08/01/2012 06:17 AM, Benjamin Herrenschmidt wrote: Hi Avi ! We identified a problem on powerpc which seems to actually be a generic issue, and Alex suggested we propose a generic fix. I want to make sure we are on the right track first before

Re: Reset problem vs. MMIO emulation, hypercalls, etc...

2012-08-02 Thread Avi Kivity
On 08/02/2012 03:59 PM, Alexander Graf wrote: On 02.08.2012, at 14:35, Avi Kivity wrote: On 08/01/2012 06:17 AM, Benjamin Herrenschmidt wrote: Hi Avi ! We identified a problem on powerpc which seems to actually be a generic issue, and Alex suggested we propose a generic fix. I want to

RE: [PATCH 4/4] Enable kvm emulated watchdog

2012-08-02 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, August 01, 2012 11:31 PM To: Bhushan Bharat-R65777 Cc: Alexander Graf; qemu-...@nongnu.org List; kvm-ppc@vger.kernel.org; qemu- devel qemu-devel; KVM list Subject: Re: [PATCH 4/4] Enable kvm emulated watchdog On

Re: [PATCH 4/4] Enable kvm emulated watchdog

2012-08-02 Thread Alexander Graf
On 01.08.2012, at 19:27, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, August 01, 2012 7:57 AM To: Bhushan Bharat-R65777 Cc: qemu-...@nongnu.org List; kvm-ppc@vger.kernel.org; Bhushan Bharat-R65777; qemu-devel

Re: [PATCH 4/4] Enable kvm emulated watchdog

2012-08-02 Thread Alexander Graf
On 01.08.2012, at 19:36, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, August 01, 2012 7:57 AM To: Bhushan Bharat-R65777 Cc: qemu-...@nongnu.org List; kvm-ppc@vger.kernel.org; Bhushan Bharat-R65777; qemu-devel

Re: [PATCH 4/4] Enable kvm emulated watchdog

2012-08-02 Thread Alexander Graf
On 01.08.2012, at 20:00, Scott Wood wrote: On 08/01/2012 12:27 PM, Bhushan Bharat-R65777 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Wednesday, August 01, 2012 7:57 AM To: Bhushan Bharat-R65777 Cc: qemu-...@nongnu.org List;

Re: Reset problem vs. MMIO emulation, hypercalls, etc...

2012-08-02 Thread Benjamin Herrenschmidt
On Thu, 2012-08-02 at 15:35 +0300, Avi Kivity wrote: This is actually documented in api.txt, though not in relation to reset: NOTE: For KVM_EXIT_IO, KVM_EXIT_MMIO and KVM_EXIT_OSI, the corresponding operations are complete (and guest state is consistent) only after userspace has

Re: [PATCH 4/4] Enable kvm emulated watchdog

2012-08-02 Thread Scott Wood
On 08/02/2012 10:56 AM, Bhushan Bharat-R65777 wrote: -Original Message- From: Wood Scott-B07421 Sent: Wednesday, August 01, 2012 11:31 PM To: Bhushan Bharat-R65777 Cc: Alexander Graf; qemu-...@nongnu.org List; kvm-ppc@vger.kernel.org; qemu- devel qemu-devel; KVM list Subject:

Re: [RFC PATCH 3/3] KVM: Push rmap into kvm_arch_memory_slot

2012-08-02 Thread Paul Mackerras
On Wed, Aug 01, 2012 at 06:03:28PM +0900, Takuya Yoshikawa wrote: Two reasons: - x86 can integrate rmap and rmap_pde and remove heuristics in __gfn_to_rmap(). - Some architectures do not need rmap. Since rmap is one of the most memory consuming stuff in KVM, ppc'd better restrict the

RE: [PATCH 4/4] Enable kvm emulated watchdog

2012-08-02 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Friday, August 03, 2012 2:02 AM To: Bhushan Bharat-R65777 Cc: Wood Scott-B07421; Alexander Graf; qemu-...@nongnu.org List; kvm- p...@vger.kernel.org; qemu-devel qemu-devel; KVM list Subject: Re: [PATCH 4/4] Enable kvm emulated

[PATCH 1/2] KVM: PPC: booke: Add watchdog emulation

2012-08-02 Thread Bharat Bhushan
This patch adds the watchdog emulation in KVM. The watchdog emulation is enabled by KVM_ENABLE_CAP(KVM_CAP_PPC_BOOKE_WATCHDOG) ioctl. The kernel timer are used for watchdog emulation and emulates h/w watchdog state machine. On watchdog timer expiry, it exit to QEMU if TCR.WRC is non ZERO. QEMU can

[PATCH 2/2] Unified the kvm requests in one function

2012-08-02 Thread Bharat Bhushan
I am sending this as a separate patch for easiness on review. Once reviewed I will merge this with watchdog patch. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/kvm/booke.c | 63 +++--- 1 files changed, 37 insertions(+), 26