Re: kernel device reset support

Avi Kivity
2007-10-08T10:27:04Z

Dong, Eddie wrote:
> Kernel side patch to introduce a new API for kernel device reset and
> force
> vcpu mp_state to UNINATIALIZED state if it is reset.
> thx,eddie
>
> +
> +/*
> + * Reset VM.
> + *
> + */
> +int kvm_vm_reset(struct kvm *kvm)
> +{
> + struct kvm_vcpu *vcpu;
> + int i;
> +
> + kvm_reset_devices(kvm);
>

Need to take kvm->lock around this.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.