From patchwork Tue Sep 10 05:21:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rusty Russell X-Patchwork-Id: 273851 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AA2492C00BB for ; Tue, 10 Sep 2013 21:48:37 +1000 (EST) Received: from localhost ([::1]:57093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJMQt-0006Tq-Sw for incoming@patchwork.ozlabs.org; Tue, 10 Sep 2013 07:48:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJMQT-0006JW-Dy for qemu-devel@nongnu.org; Tue, 10 Sep 2013 07:48:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJMQL-00084o-9I for qemu-devel@nongnu.org; Tue, 10 Sep 2013 07:48:09 -0400 Received: from ozlabs.org ([203.10.76.45]:44814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJMQK-00082Z-Up for qemu-devel@nongnu.org; Tue, 10 Sep 2013 07:48:01 -0400 Received: by ozlabs.org (Postfix, from userid 1011) id 3A2092C0396; Tue, 10 Sep 2013 21:47:56 +1000 (EST) From: Rusty Russell To: Greg Kurz , qemu-devel@nongnu.org In-Reply-To: <20130909124402.5114.12599.stgit@bahia.local> References: <1376294363-4650-4-git-send-email-rusty@rustcorp.com.au> <20130909124402.5114.12599.stgit@bahia.local> User-Agent: Notmuch/0.15.2+81~gd2c8818 (http://notmuchmail.org) Emacs/23.4.1 (i686-pc-linux-gnu) Date: Tue, 10 Sep 2013 14:51:00 +0930 Message-ID: <87bo4145hf.fsf@rustcorp.com.au> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 203.10.76.45 Cc: Michael Neuling Subject: Re: [Qemu-devel] [PATCH] hw/9pfs/virtio_9p_device: use virtio wrappers to access headers. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Greg Kurz writes: > Follow-up to Rusty's virtio endianness serie: enough to get a working > virtfs mount. > > Note that st*_raw and ld*_raw are effectively replaced by st*_p and ld*_p. > > Signed-off-by: Greg Kurz Thanks! I've reworked my patches in line with the anticipated KVM_GET_ONE_REG from Mikey, and put this into the series. Mikey, here's the template I assumed (needs CONFIG_KVM implementation of kvmppc_update_spr_lpcr). Cheers, Rusty. FIXME: Implement for KVM using KVM_GET_ONE_REG! diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h index 771cfbe..30d8af6 100644 --- a/target-ppc/kvm_ppc.h +++ b/target-ppc/kvm_ppc.h @@ -29,6 +29,7 @@ int kvmppc_clear_tsr_bits(PowerPCCPU *cpu, uint32_t tsr_bits); int kvmppc_or_tsr_bits(PowerPCCPU *cpu, uint32_t tsr_bits); int kvmppc_set_tcr(PowerPCCPU *cpu); int kvmppc_booke_watchdog_enable(PowerPCCPU *cpu); +void kvmppc_update_spr_lpcr(PowerPCCPU *cpu); #ifndef CONFIG_USER_ONLY off_t kvmppc_alloc_rma(const char *name, MemoryRegion *sysmem); void *kvmppc_create_spapr_tce(uint32_t liobn, uint32_t window_size, int *pfd); @@ -159,6 +160,10 @@ static inline bool kvmppc_has_cap_epr(void) { return false; } + +static inline void kvmppc_update_spr_lpcr(PowerPCCPU *cpu) +{ +} #endif #ifndef CONFIG_KVM