Re: [Qemu-devel] [PATCH 1/1] scsi-disk: passthrough VERIFY command

2016-12-16 Thread zhong...@sangfor.com.cn
Yes, it's also work. So you prefer the latter? zhong...@sangfor.com.cn From: Paolo Bonzini Date: 2016-12-16 18:10 To: Junlian Bell CC: qemu-devel Subject: Re: [PATCH 1/1] scsi-disk: passthrough VERIFY command On 16/12/2016 08:55, Junlian Bell wrote: > When a scsi-disk object recei

Re: [Qemu-devel] [PATCH]MC146818 RTC: Get correct guest time when irq coalesced

2016-09-26 Thread zhong...@sangfor.com.cn
>No, it's not seconds. It depends on the interval of the periodic interrupt. > >In any case this approach is not acceptable, unfortunately; it causes >the time to go backwards for the guest as soon as an interrupt is coalesced. > >What is the guest that you're seeing issues with? Yes, it's

[Qemu-devel] [PATCH v4]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-26 Thread zhong...@sangfor.com.cn
variable according to time stamp in cmos array. Signed-off-by: Junlian Bell <zhong...@sangfor.com.cn> --- hw/timer/mc146818rtc.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index ea625f2..4e4af43 100644 --- a/hw

[Qemu-devel] [PATCH v3]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-26 Thread zhong...@sangfor.com.cn
variable according to time stamp in cmos array. Signed-off-by: Junlian Bell <zhong...@sangfor.com.cn> --- hw/timer/mc146818rtc.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c index ea625f2..1e0ed14 100644 --- a/hw

[Qemu-devel] [PATCH]MC146818 RTC: Get correct guest time when irq coalesced

2016-09-25 Thread zhong...@sangfor.com.cn
Hi, Paolo This is another patch arround RTC. Would you please have a review. --separation- MC146818 RTC: Get correct guest time when irq coalesced When irq coalesce occurred, irq_coalesced actually store the seconds that the time

[Qemu-devel] [PATCH v2]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-25 Thread zhong...@sangfor.com.cn
is trying to fix the problem. first, when vmsave in progress, we rtc_update_time to refresh time stamp in cmos array, then during vmrestore, we rtc_set_time to update qemu base_rtc and last_update variable according to time stamp in cmos array. Signed-off-by: Junlian Bell <zhong...@sangfor.com

Re: [Qemu-devel] [PATCH]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-22 Thread zhong...@sangfor.com.cn
. zhong...@sangfor.com.cn From: Paolo Bonzini Date: 2016-09-21 23:15 To: zhong...@sangfor.com.cn; qemu-devel CC: Michael S. Tsirkin Subject: Re: [PATCH]MC146818 RTC: coordinate guest clock base to destination host after migration On 21/09/2016 09:36, zhong...@sangfor.com.cn wrote: > If

Re: [Qemu-devel] [PATCH]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-21 Thread zhong...@sangfor.com.cn
; -if (version_id <= 2) { +if (rtc_clock == QEMU_CLOCK_REALTIME || version_id <= 2) { rtc_set_time(s); s->offset = 0; check_update_timer(s); --- Could you send me the complete patch? zhong...@sangfor.com.cn From: zhong...@sangfor.com.cn Date: 2016-09

Re: [Qemu-devel] [PATCH]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-21 Thread zhong...@sangfor.com.cn
Thinks! the model disrupted. yes, approach we choose looks a little tediously long. but we'll gain in the future, when we trying to improve zhong...@sangfor.com.cn From: Paolo Bonzini Date: 2016-09-20 21:12 To: zhong...@sangfor.com.cn; qemu-devel CC: Michael S. Tsirkin Subject: Re: [PATCH]MC

Re: [Qemu-devel] [PATCH]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-20 Thread zhong...@sangfor.com.cn
=off \ -post win2008x64_Sangfor123clone --- > On 20/09/2016 09:19, zhong...@sangfor.com.cn wrote: > > qemu tracks guest time based on vector [base_rtc, last_update], in which > > last_update stands for a monotonic tick which is actually uptime of the > host. > > But last_update is

Re: [Qemu-devel] [PATCH]MC146818 RTC: coordinate guest clock base to destination host after migration

2016-09-20 Thread zhong...@sangfor.com.cn
yes, the full options on clock is '-rtc driftfix=slew,clock=rt,base=localtime' zhong...@sangfor.com.cn From: Paolo Bonzini Date: 2016-09-20 16:17 To: zhong...@sangfor.com.cn; qemu-devel CC: Michael S. Tsirkin Subject: Re: [PATCH]MC146818 RTC: coordinate guest clock base to destination host