Int kvm_gpa_set_protect (struct * KVM, KVM uint64_t gpa)
{
Int ret=0;
//TODO How about mutil - vcpu.
Struct kvm_vcpu * vcpu;
int i;
For (I=0; i
/*
* As the Guest is not running at this moment,
* we need to load the kvm_mmu actively.
*/
//kvm_mmu_load (vcpu);
If (vcpu) {
break;
}
The else
continue;
}
If (tdp_enabled) {
Ret=kvm_gpa_set_protect_tdp_spte (vcpu, gpa);
Printk (" * * * * * * * * * * % s, ret=% d \ n ", __func__, ret);
If (ret)
return ret;
} else {
Printk (" * * * * * * * * * * ept disabled! \n");
}
return ret;
}
This function only supports a vcpu,
I don't know which master can help to give some advice, how to modify that he supports multiple vcpu, my poor knowledge, I don't know where laid a hand on him,