Re: [kvm-devel] [PATCH 3/4] kvm/host: fix paravirt clocksource to be compatible with xen.

2008-05-21 Thread Avi Kivity
Gerd Hoffmann wrote: +static uint32_t div_frac(uint32_t dividend, uint32_t divisor) +{ +uint32_t quotient, remainder; + +__asm__ ( divl %4 + : =a (quotient), =d (remainder) + : 0 (0), 1 (dividend), r (divisor) ); +return quotient; +}

Re: [kvm-devel] [PATCH 3/4] kvm/host: fix paravirt clocksource to be compatible with xen.

2008-05-18 Thread Avi Kivity
Gerd Hoffmann wrote: +static uint32_t div_frac(uint32_t dividend, uint32_t divisor) +{ +uint32_t quotient, remainder; + +__asm__ ( divl %4 + : =a (quotient), =d (remainder) + : 0 (0), 1 (dividend), r (divisor) ); +return quotient; +}

Re: [kvm-devel] [PATCH 3/4] kvm/host: fix paravirt clocksource to be compatible with xen.

2008-05-16 Thread Gerd Hoffmann
Avi Kivity wrote: +struct timespec now,sys,boot; Add spaces. Done. +#if 0 +/* Hmm, getboottime() isn't exported to modules ... */ +getboottime(boot); +#else +now = current_kernel_time(); +ktime_get_ts(sys); +boot = ns_to_timespec(timespec_to_ns(now) -

Re: [kvm-devel] [PATCH 3/4] kvm/host: fix paravirt clocksource to be compatible with xen.

2008-05-13 Thread Avi Kivity
Gerd Hoffmann wrote: Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED] --- arch/x86/kvm/x86.c | 63 +++ 1 files changed, 53 insertions(+), 10 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 979f983..6906d54 100644 ---