Skip to contentSkip to conversation

Counting VCPU instructions

DISCUSSION Abhishek Saksena 2 participants 3 messages Jan 12, 2009 – Jan 13, 2009 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

Hi guys,
Is ther a way to count how many instruction VCPU (KVM) executed? Say between between two IO/mmio operations.
Is there any KVM API for this?

Other thing which I am not sure how KVM kerenel is synconrinized with Qemu kernel? Can somebody explain this?

Thanks

Abhishek

#1 lore raw
Quoted 6 lines · Abhishek Saksena

Hi guys,
Is ther a way to count how many instruction VCPU (KVM) executed? Say between between two IO/mmio operations.
Is there any KVM API for this?

While it's possible in theory using the hardware performance counters, no one has implemented this.

Quoted 3 lines

Other thing which I am not sure how KVM kerenel is synconrinized with Qemu kernel? Can somebody explain this?

What's the qemu kernel?

Signature · 1 line
error compiling committee.c: too many arguments to function

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

#3 lore raw

(restoring cc)

Quoted 10 lines · Abhishek Saksena
Quoted 6 lines
Quoted 4 lines

Other thing which I am not sure how KVM kerenel is synconrinized with Qemu kernel? Can somebody explain this?

What's the qemu kernel?

Just qemu. Qemu has it's own timers how they are synced up with KVM? For example if the guest is getting too far ahead, we need to slow it down.

Guest getting too far ahead of what? Why would we want to slow down a guest?

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.