Skip to contentSkip to conversation

kvm: x86: reduce rtc 0x70 access vm-exit time

PATCH Paolo Bonzini 1 participant 1 message Aug 2, 2017 1 message not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Paolo Bonzini

author maintainer
#1 lore raw
Quoted 6 lines · On 02/08/2017 11:02, [email protected] wrote:
Quoted 5 lines · On 02/08/2017 10:45, [email protected] wrote:
Quoted 3 lines
Quoted 1 line · Peng Hao

coalesced MMIO is async and io port should be sync . I don't need to coalese io port access.

Quoted 6 lines
Quoted 4 lines

Coalesced MMIO access is resolved on the next read from a coalesced MMIO address or the next write to a non-coalescecd MMIO address. So it would work perfectly for port 0x70. You would have to modify QEMU to split the RTC I/O ports into two MemoryRegions.

ok , it sounds simpler. I will try it.

My suggestion is to repurpose the "pad" field of "struct kvm_coalesced_mmio_zone" to be 0 for memory and -1 for I/O. It should be enough for an RFC.

Later we can look into how to handle backwards compatibility.

Thanks,

Paolo