From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [kvm-devel] [RFC][PATCH 2/4] kvm: Arch-specifc KVM_EXIT_DEBUG payload Date: Wed, 21 May 2008 18:59:36 +0300 Message-ID: <483446E8.1020605@qumranet.com> References: <482D9198.7040801@web.de> <482DAFF6.3050403@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm-devel , Hollis Blanchard To: Jan Kiszka Return-path: In-Reply-To: <482DAFF6.3050403@web.de> Sender: kvm-owner@vger.kernel.org List-ID: Jan Kiszka wrote: > This adds an arch field to kvm_run.debug, the payload that is returned > to user space on KVM_EXIT_DEBUG guest exits. For x86, this field is now > supposed to report the precise debug exception (#DB or #BP) and the > current state of the debug registers (the latter is not yet > implemented). > > Index: b/include/asm-x86/kvm.h > =================================================================== > --- a/include/asm-x86/kvm.h > +++ b/include/asm-x86/kvm.h > @@ -230,4 +230,9 @@ struct kvm_pit_state { > #define KVM_TRC_APIC_ACCESS (KVM_TRC_HANDLER + 0x14) > #define KVM_TRC_TDP_FAULT (KVM_TRC_HANDLER + 0x15) > > +struct kvm_debug_exit_arch { > + __u32 exception; > + __u64 dr[8]; > +}; > + > Need empty structures for non-x86. Need a KVM_CAP_ to indicate presence of this feature. -- error compiling committee.c: too many arguments to function