Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115902257
D33448.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
752 B
Referenced Files
None
Subscribers
None
D33448.diff
View Options
diff --git a/sys/amd64/vmm/io/vlapic.c b/sys/amd64/vmm/io/vlapic.c
--- a/sys/amd64/vmm/io/vlapic.c
+++ b/sys/amd64/vmm/io/vlapic.c
@@ -1740,10 +1740,13 @@
SNAPSHOT_VAR_OR_LEAVE(ccr, meta, ret, done);
- if (meta->op == VM_SNAPSHOT_RESTORE) {
+ if (meta->op == VM_SNAPSHOT_RESTORE &&
+ vlapic_enabled(vlapic) && lapic->icr_timer != 0) {
/* Reset the value of the 'timer_fire_bt' and the vlapic
* callout based on the value of the current count
- * register saved when the VM snapshot was created
+ * register saved when the VM snapshot was created.
+ * If initial count register is 0, timer is not used.
+ * Look at "10.5.4 APIC Timer" in Software Developer Manual.
*/
vlapic_reset_callout(vlapic, ccr);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 5:18 AM (9 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17873567
Default Alt Text
D33448.diff (752 B)
Attached To
Mode
D33448: vmm: vlapic resume can eat 100% CPU by vlapic_callout_handler
Attached
Detach File
Event Timeline
Log In to Comment