Re: KVM: MMU: nuke shadowed pgtable pages and pte's on memslot destruction

Avi Kivity
2008-07-22T05:18:57Z

Hollis Blanchard wrote:
> On Thu, 2008-07-10 at 20:49 -0300, Marcelo Tosatti wrote:
>
>> diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
>> index b850d24..2c438a7 100644
>> --- a/arch/powerpc/kvm/powerpc.c
>> +++ b/arch/powerpc/kvm/powerpc.c
>> @@ -170,6 +170,11 @@ int kvm_arch_set_memory_region(struct kvm *kvm,
>> return 0;
>> }
>>
>> +void kvm_arch_flush_shadow(struct kvm *kvm)
>> +{
>> + return;
>> +}
>> +
>> struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int
>> id)
>> {
>> struct kvm_vcpu *vcpu;
>>
>
> By the way, what is the testcase for this, i.e. how do I remove a
> memslot?
>
>

1. Memory hotunplug (perhaps not very relevant to embedded operating
systems)
2. PCI memory resource remapping (aka framebuffers)

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