On 11/01/2012 02:47 AM, Marcelo Tosatti wrote:
> +#ifdef CONFIG_PARAVIRT_CLOCK
> +
> +static notrace const struct pvclock_vsyscall_time_info *get_pvti(int cpu)
> +{
> + const aligned_pvti_t *pvti_base;
> + int idx = cpu / (PAGE_SIZE/PVTI_SIZE);
> + int offset = cpu % (PAGE_SIZE/PVTI_SIZE);
> +
> + BUG_ON(PVCLOCK_FIXMAP_BEGIN + idx > PVCLOCK_FIXMAP_END);
> +
> + pvti_base = (aligned_pvti_t *)__fix_to_virt(PVCLOCK_FIXMAP_BEGIN+idx);
> +
> + return &pvti_base[offset].info;
> +}
> +
Does BUG_ON() really do what you believe it does while in userspace
context? We're not running with the kernel descriptors, so this will
probably just kill the process without any explanation
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
- [patch 00/16] pvclock vsyscall support + KVM hypervisor su... Marcelo Tosatti
- [patch 03/16] x86: pvclock: remove pvclock_shadow_tim... Marcelo Tosatti
- Re: [patch 03/16] x86: pvclock: remove pvclock_sh... Glauber Costa
- [patch 14/16] KVM: x86: notifier for clocksource chan... Marcelo Tosatti
- [patch 13/16] KVM: x86: implement PVCLOCK_TSC_STABLE_... Marcelo Tosatti
- [patch 16/16] KVM: x86: require matched TSC offsets f... Marcelo Tosatti
- [patch 05/16] x86: pvclock: introduce helper to read ... Marcelo Tosatti
- Re: [patch 05/16] x86: pvclock: introduce helper ... Glauber Costa
- Re: [patch 05/16] x86: pvclock: introduce hel... Marcelo Tosatti
- [patch 10/16] x86: vdso: pvclock gettime support Marcelo Tosatti
- Re: [patch 10/16] x86: vdso: pvclock gettime supp... Glauber Costa
- Re: [patch 10/16] x86: vdso: pvclock gettime ... Marcelo Tosatti
- Re: [patch 10/16] x86: vdso: pvclock gett... Marcelo Tosatti
- Re: [patch 10/16] x86: vdso: pvclock... Glauber Costa
- Re: [patch 10/16] x86: vdso: pvclock gettime supp... Gleb Natapov
- Re: [patch 10/16] x86: vdso: pvclock gettime ... Marcelo Tosatti
- [patch 08/16] KVM: x86: introduce facility to support... Marcelo Tosatti
- Re: [patch 08/16] KVM: x86: introduce facility to... Glauber Costa
- Re: [patch 08/16] KVM: x86: introduce facilit... Marcelo Tosatti
- Re: [patch 08/16] KVM: x86: introduce fac... Glauber Costa
- Re: [patch 08/16] KVM: x86: introduc... Marcelo Tosatti
