Skip to contentSkip to conversation

Suggestions for testing VAPIC / TPR patching

DISCUSSION Jan Kiszka 2 participants 4 messages Jan 19, 2012 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi again,

what is the best way to check if the TPR patching feature of qemu-kvm is working and performs efficiently? I suppose Windows XP guests, e.g.? How to measure this best? I'm about to start porting it to upstream and like to prepare a good test case.

Thanks,
Jan

PS: After the /kvm removal, I'm currently counting a bit more than 7000 LOC difference in qemu-kvm. We are converging.

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 7 lines · Jan Kiszka

Hi again,

what is the best way to check if the TPR patching feature of qemu-kvm is working and performs efficiently? I suppose Windows XP guests, e.g.? How to measure this best? I'm about to start porting it to upstream and like to prepare a good test case.

Run WindowsXP on AMD HW without vapic and see number of TPR access exits. Than run it with vapic and check again. Don't forget to check that reboot et al work.

Quoted 13 lines

Thanks,
Jan

PS: After the /kvm removal, I'm currently counting a bit more than 7000 LOC difference in qemu-kvm. We are converging.

Signature · 6 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
Gleb.

author
#2 lore raw
Quoted 11 lines · Gleb Natapov
Quoted 7 lines · Jan Kiszka

Hi again,

what is the best way to check if the TPR patching feature of qemu-kvm is working and performs efficiently? I suppose Windows XP guests, e.g.? How to measure this best? I'm about to start porting it to upstream and like to prepare a good test case.

Run WindowsXP on AMD HW without vapic and see number of TPR access exits. Than run it with vapic and check again. Don't forget to check that reboot et al work.

So is this an optimization only for AMD CPUs or can it be reproduced on Intel as well? Any CPU feature dependencies?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
#3 lore raw
Quoted 9 lines · Jan Kiszka
Quoted 8 lines · Gleb Natapov
Quoted 7 lines · Jan Kiszka

Hi again,

what is the best way to check if the TPR patching feature of qemu-kvm is working and performs efficiently? I suppose Windows XP guests, e.g.? How to measure this best? I'm about to start porting it to upstream and like to prepare a good test case.

Quoted 7 lines
Quoted 3 lines

Run WindowsXP on AMD HW without vapic and see number of TPR access exits. Than run it with vapic and check again. Don't forget to check that reboot et al work.

So is this an optimization only for AMD CPUs or can it be reproduced on Intel as well? Any CPU feature dependencies?

It can be reproduced on Intel as well, but older once. There is flexpriority module option that you can disable on loading, but I think it is not enough and you also need to disable tpr_shadow, but there is not option for that.

--
Gleb.