diff options
author | Denis Plotnikov <dplotnikov@virtuozzo.com> | 2017-05-29 13:49:04 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-07 18:22:02 +0200 |
commit | e2b6c1712e08bc5feafb44fdc65ab81ef2630b4b (patch) | |
tree | 2bb70a4ad941f89f05bc66afa1c1e66b25fc4d89 /pc-bios/linuxboot_dma.bin | |
parent | df8ad9f128c15aa0a0ebc7b24e9a22c9775b67af (diff) |
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>
Diffstat (limited to 'pc-bios/linuxboot_dma.bin')
0 files changed, 0 insertions, 0 deletions