RE: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC

2015-11-25 Thread Dong, Eddie
> On Wed, Nov 25, 2015 at 12:21 AM, Lan Tianyu wrote: > > On 2015年11月25日 13:30, Alexander Duyck wrote: > >> No, what I am getting at is that you can't go around and modify the > >> configuration space for every possible device out there. This > >> solution won't scale. > > > > > > PCI config

RE: [RFC PATCH V2 0/3] IXGBE/VFIO: Add live migration support for SRIOV NIC

2015-11-25 Thread Dong, Eddie
> On Wed, Nov 25, 2015 at 12:21 AM, Lan Tianyu wrote: > > On 2015年11月25日 13:30, Alexander Duyck wrote: > >> No, what I am getting at is that you can't go around and modify the > >> configuration space for every possible device out there. This > >> solution won't scale. > >

RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.

2007-11-13 Thread Dong, Eddie
>> >> +kvm_get_msr(vcpu, MSR_IA32_TIME_STAMP_COUNTER, >> + >hv_clock.last_tsc); >> + >> +ktime_get_ts(); >> +vcpu->hv_clock.now_ns = ts.tv_nsec + (NSEC_PER_SEC * >> (u64)ts.tv_sec); + vcpu->hv_clock.wc_sec = get_seconds(); >> >> I am even thinking we have to

RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.

2007-11-13 Thread Dong, Eddie
Avi Kivity wrote: > Glauber de Oliveira Costa wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Dong, Eddie escreveu: >> >>>> +static void kvm_write_guest_time(struct kvm_vcpu *vcpu) +{ >>>> + struct ti

RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.

2007-11-13 Thread Dong, Eddie
Avi Kivity wrote: Glauber de Oliveira Costa wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dong, Eddie escreveu: +static void kvm_write_guest_time(struct kvm_vcpu *vcpu) +{ + struct timespec ts; + int r; + + if (!vcpu-clock_gpa) + return; + + /* Updates version

RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.

2007-11-13 Thread Dong, Eddie
+kvm_get_msr(vcpu, MSR_IA32_TIME_STAMP_COUNTER, + vcpu-hv_clock.last_tsc); + +ktime_get_ts(ts); +vcpu-hv_clock.now_ns = ts.tv_nsec + (NSEC_PER_SEC * (u64)ts.tv_sec); + vcpu-hv_clock.wc_sec = get_seconds(); I am even thinking we have to disable

RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.

2007-11-12 Thread Dong, Eddie
> +static void kvm_write_guest_time(struct kvm_vcpu *vcpu) +{ > + struct timespec ts; > + int r; > + > + if (!vcpu->clock_gpa) > + return; > + > + /* Updates version to the next odd number, indicating > we're writing */ > + vcpu->hv_clock.version++; > +

RE: [kvm-devel] [PATCH 2/3] kvmclock - the host part.

2007-11-12 Thread Dong, Eddie
+static void kvm_write_guest_time(struct kvm_vcpu *vcpu) +{ + struct timespec ts; + int r; + + if (!vcpu-clock_gpa) + return; + + /* Updates version to the next odd number, indicating we're writing */ + vcpu-hv_clock.version++; +