| Summary: | [xen] XenServer PVHVM guest clock problems | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Mark Felder <feld> | ||||
| Component: | kern | Assignee: | Roger Pau Monné <royger> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | Keywords: | patch | ||||
| Priority: | --- | ||||||
| Version: | 10.0-RELEASE | ||||||
| Hardware: | amd64 | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Mark Felder
2014-09-03 18:50:02 UTC
I can at least confirm that save/restore is working fine with upstream Xen, see for example the output of one of the Xen CI loop tests: http://www.chiark.greenend.org.uk/~xensrcts/logs/30083/test-amd64-i386-freebsd10-amd64/10.ts-guest-saverestore.log It clearly shows that the date is correct after restore. I guess the following commit is missing on XenServer: http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=f8e8fd56bd7d5675e8331b4ec74bae76c9dbf24e There's a related commit that also fixes a bug in suspend/resume for PVHVM (which I guess hasn't been backported to XenServer yet): http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=32c864a35ece2c24a336d183869a546798a4b241 Without both of this the PV timer is not really usable when doing suspend/resume on PVHVM. I would recommend as a workaround to manually set kern.timecounter.hardware to HPET for example and kern.eventtimer.timer to LAPIC if you plan to perform suspensions until this is fixed on XenServer. Do you have any reason to believe that changing kern.timecounter.hardware and kern.eventtimer.timer before a XM or XSM will prevent those clock issues from happening as well? Or is that a completely different issue? Thanks! No, sorry, I'm on vacations and I'm kind of spaced out. Changing the eventtimer and timecounter would not solve the issues, and AFAICT there's no way to change the clock from sysctl. The only option is to comment the clock_register call in the xen timer code (sys/dev/xen/timer/timer.c). I will look into adding a sysctl to disable registering the PV clock when I'm back from vacations. Created attachment 147352 [details]
Patch to disable the PV timer
The following patch should allow you to disable the PV timer at boot time by setting "hw.xen.disable_pv_timer=1" on /boot/loader.conf. Could you please test it to see if that solves your problems?
|