diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-17 13:15:11 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-25 17:35:15 +0200 |
commit | f57a4dd31154e9c054fe75d4ab27829033720a8d (patch) | |
tree | 112daf2e685a851338d2806365a2eb5db1f98ce0 /accel | |
parent | 4b2991666c52de1c708226cd0c022869e802aa26 (diff) | |
download | qemu-f57a4dd31154e9c054fe75d4ab27829033720a8d.zip qemu-f57a4dd31154e9c054fe75d4ab27829033720a8d.tar.gz qemu-f57a4dd31154e9c054fe75d4ab27829033720a8d.tar.bz2 |
kvm: i386: require KVM_CAP_DEBUGREGS
This was introduced in KVM in Linux 2.6.35, we can require it unconditionally.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel')
-rw-r--r-- | accel/kvm/kvm-all.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index b59a48d..aeda902 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2528,10 +2528,6 @@ static int kvm_init(MachineState *ms) s->robust_singlestep = kvm_check_extension(s, KVM_CAP_X86_ROBUST_SINGLESTEP); -#ifdef KVM_CAP_DEBUGREGS - s->debugregs = kvm_check_extension(s, KVM_CAP_DEBUGREGS); -#endif - s->max_nested_state_len = kvm_check_extension(s, KVM_CAP_NESTED_STATE); s->irq_set_ioctl = KVM_IRQ_LINE; @@ -3152,11 +3148,6 @@ int kvm_has_robust_singlestep(void) return kvm_state->robust_singlestep; } -int kvm_has_debugregs(void) -{ - return kvm_state->debugregs; -} - int kvm_max_nested_state_length(void) { return kvm_state->max_nested_state_len; |