qemu/hw/i386/kvm
Denis Plotnikov e2b6c1712e kvmclock: update system_time_msr address forcibly
Do an update of system_time_msr address every time before reading
the value of tsc_timestamp from guest's kvmclock page.

There is no other code paths which ensure that qemu has an up-to-date
value of system_time_msr. So, force this update on guest's tsc_timestamp
reading.

This bug causes effect on those nested setups which turn off TPR access
interception for L2 guests and that access being intercepted by L0 doesn't
show up in L1.
Linux bootstrap initiate kvmclock before APIC initializing causing TPR access.
That's why on L1 guests, having TPR interception turned on for L2, the effect
of the bug is not revealed.

This patch fixes this problem by making sure it knows the correct
system_time_msr address every time it is needed.

Signed-off-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
Message-Id: <1496054944-25623-1-git-send-email-dplotnikov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-06-07 18:22:02 +02:00
..
apic.c kvm: move cpu synchronization code 2017-01-19 22:07:46 +01:00
clock.c kvmclock: update system_time_msr address forcibly 2017-06-07 18:22:02 +02:00
i8254.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
i8259.c pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP 2016-09-13 18:12:34 +03:00
ioapic.c kvm/ioapic: correct kvm ioapic version 2017-02-16 14:06:55 +01:00
Makefile.objs hw: move hw/kvm/ to hw/i386/kvm 2013-04-08 18:13:16 +02:00
pci-assign.c pci-assign: sync MSI/MSI-X cap and table with PCIDevice 2016-11-28 15:11:17 +01:00