From patchwork Fri Nov 26 12:23:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "SourceForge.net" X-Patchwork-Id: 358522 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAQCNZMu027946 for ; Fri, 26 Nov 2010 12:23:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752875Ab0KZMXW (ORCPT ); Fri, 26 Nov 2010 07:23:22 -0500 Received: from ch3.sourceforge.net ([216.34.181.60]:43197 "EHLO ch3.sourceforge.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752910Ab0KZMXV (ORCPT ); Fri, 26 Nov 2010 07:23:21 -0500 Received: from www by sfs-web-10.v29.ch3.sourceforge.com with local (Exim 4.69) (envelope-from ) id 1PLxKi-0004a8-HN; Fri, 26 Nov 2010 12:23:20 +0000 To: noreply@sourceforge.net From: "SourceForge.net" Subject: [ kvm-Bugs-2848498 ] COMPILATION ERRORS Mime-Version: 1.0 X-SourceForge-Tracker-unixname: kvm X-SourceForge-Tracker-trackerid: 893831 X-SourceForge-Tracker-itemid: 2848498 X-SourceForge-Tracker-itemstatus: Closed X-SourceForge-Tracker-itemassignee: nobody X-SourceForge-Tracker-itemupdate-reason: Comment added X-SourceForge-Tracker-itemupdate-username: jessorensen Message-Id: Date: Fri, 26 Nov 2010 12:23:20 +0000 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 26 Nov 2010 12:23:36 +0000 (UTC) diff --git a/qemu-kvm.c b/qemu-kvm.c index d554749..245c4c7 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1815,7 +1815,6 @@ static void *ap_main_loop(void *_env) { CPUState *env = _env; sigset_t signals; - struct ioperm_data *data = NULL; current_env = env; env->thread_id = kvm_get_thread_id(); @@ -1824,6 +1823,9 @@ static void *ap_main_loop(void *_env) env->kvm_cpu_state.vcpu_ctx = kvm_create_vcpu(env, env->cpu_index); #ifdef USE_KVM_DEVICE_ASSIGNMENT + + struct ioperm_data *data = NULL; + /* do ioperm for io ports of assigned devices */ LIST_FOREACH(data, &ioperm_head, entries) on_vcpu(env, kvm_arch_do_ioperm, data); diff --git a/qemu-kvm.h b/qemu-kvm.h index 2c1730b..2ffc600 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -1060,6 +1060,9 @@ int kvm_arch_init_irq_routing(void); int kvm_mmio_read(void *opaque, uint64_t addr, uint8_t * data, int len); int kvm_mmio_write(void *opaque, uint64_t addr, uint8_t * data, int len); +void kvm_mutex_unlock(void); +void kvm_mutex_lock(void); + #ifdef USE_KVM_DEVICE_ASSIGNMENT struct ioperm_data;