mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
accel/kvm: move kvm_update_guest_debug to inline stub
Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220929114231.583801-47-alex.bennee@linaro.org>
This commit is contained in:
parent
a48e7d9e52
commit
c7f1c53735
3 changed files with 16 additions and 11 deletions
|
@ -247,7 +247,23 @@ int kvm_on_sigbus(int code, void *addr);
|
|||
|
||||
void kvm_flush_coalesced_mmio_buffer(void);
|
||||
|
||||
/**
|
||||
* kvm_update_guest_debug(): ensure KVM debug structures updated
|
||||
* @cs: the CPUState for this cpu
|
||||
* @reinject_trap: KVM trap injection control
|
||||
*
|
||||
* There are usually per-arch specifics which will be handled by
|
||||
* calling down to kvm_arch_update_guest_debug after the generic
|
||||
* fields have been set.
|
||||
*/
|
||||
#ifdef KVM_CAP_SET_GUEST_DEBUG
|
||||
int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap);
|
||||
#else
|
||||
static inline int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* internal API */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue