RE: [RFC 1/2] kvm: host-side changes for tmem on KVM

From: Dan Magenheimer
Date: Thu Mar 15 2012 - 15:45:00 EST


> From: Akshay Karle [mailto:akshay.a.karle@xxxxxxxxx]
> Subject: Re: [RFC 1/2] kvm: host-side changes for tmem on KVM
>
> >> Working at host:
> >> Once the guest exits to the kvm host, the host determines that the guest exited
> >> to perform some tmem operation(done at kvm_emulate_hypercall)and then
> >> we use zcache to implement this required operations(performed by kvm_pv_tmem_op).
> >
> > Do you need any modifications to the Kconfig file to reflect the KVM dependency?
>
> Yeah, the Kconfig of zcache now needs to be modified to reflect the KVM and the KVM_INTEL or
> KVM_AMD dependency. The Kconfig can also be modified to support tmem for the guest kernels,
> as the zcache code is not at all used in the guest, only the kvm-tmem, cleancache and
> frontswap(if present) code is used in the guest. But, in the host its necessary to enable zcache.
> So the Kconfig can be modified to have the following new field:
> "Transcendent memory support for kvm guests".... Which would compile just the kvm-tmem code.
> And we can add Cleancache and Frontswap as dependencies(similar to zcache).
>
> But it should be made sure that the host kernel has zcache enabled..

If the host kernel does not have zcache enabled, it may return
the value for "unimplemented hypercall". The kvm tmem code in
the guest should be prepared for that as it may even be running
on an older kvm host.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/