From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [patch uq/master 7/8] MCE: Relay UCR MCE to guest Date: Wed, 6 Oct 2010 13:02:06 -0300 Message-ID: <20101006160206.GA4277@amt.cnet> References: <20101004185447.891324545@redhat.com> <20101004185715.167557459@redhat.com> <4CABCC9B.10101@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, Huang Ying , Dean Nelson To: Hidetoshi Seto Return-path: Received: from mx1.redhat.com ([209.132.183.28]:35753 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871Ab0JFQRW (ORCPT ); Wed, 6 Oct 2010 12:17:22 -0400 Content-Disposition: inline In-Reply-To: <4CABCC9B.10101@jp.fujitsu.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Oct 06, 2010 at 10:10:51AM +0900, Hidetoshi Seto wrote: > > (snip) > > > Index: qemu/kvm.h > > =================================================================== > > --- qemu.orig/kvm.h > > +++ qemu/kvm.h > > @@ -110,6 +110,9 @@ int kvm_arch_init_vcpu(CPUState *env); > > > > void kvm_arch_reset_vcpu(CPUState *env); > > > > +int kvm_on_sigbus(CPUState *env, int code, void *addr); > > +int kvm_on_sigbus_vcpu(int code, void *addr); > > + > > struct kvm_guest_debug; > > struct kvm_debug_exit_arch; > > > > So kvm_on_sigbus() is called from qemu_kvm_eat_signal() that is > called on vcpu thread, while kvm_on_sigbus_vcpu() is called via > sigbus_handler that invoked on iothread using signalfd. > > ... Inverse naming? Yes, fixed.