Hi Gerd, On Mon, 2008-09-29 at 01:24 -0700, Gerd Hoffmann wrote:Nope the whole idea of not checking the hypervisor signature is that we should keep this interface generic. In the current code, before poking the TIMING_LEAF, we do check if the maximum supported cpuid level is greater than that leaf. If it is we go ahead and probe that cpuid leaf. Also one thing to remember is, that a hypervisor can decide to not implement this level and just return "0" the kernel can then just ignore that value. That's what we do currently in native_calibrate_tsc. Nope, lets do the "Or" part :) Exactly. Returning zero for the fields which are not supported by the hypervisor, lets us do that. So for instance right now, VMware has defined 40000010 leaf, if either kvm/xen think it could be useful they could just define that leaf to return nonzero value and the kernel will start using it for them. Likewise, if in future either kvm/xen come up with a need to define a new CPUID leaf they can define the semantics for that leaf, and the corresponding kernel side stuff. If VMware, think that this new leaf is useful, we can then support that leaf in our hypervisor or return zero otherwise. Hmm that's unfortunate, but we can have exceptions for these one of cases and AFAIK these are only checked in the kvm/xen code path and not in any generic code as of now, right ? btw, i could only find the semantics for 0x40000001 leaf in KVM's header file but don't see Xen using that leaf, can you please point me which leafs are you referring to here. Yep. Thanks, Alok --
| Dave Hansen | [RFC][PATCH 0/4] kernel-based checkpoint restart |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Eric Paris | [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
git: | |
| David Miller | Re: [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
