cpufreq and QEMU guests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I know a cloud provider worried about the fact that the /proc/cpuinfo of his
guests give a bogus frequency to his customer.

QEMU and the guests kernel currently have no way to reflect the host frequency
changes to the guests.

The customer compute intensive application then read this information and take
wrong decisions.

I looked at the various Linux cpufreq drivers and they all seems to be table
based. Is it true ?

For example the acpi cpufreq driver have 16 differents pstates at hand to lookup
in the pstate table and get the frequency.

Given that guests can migrate from one hardware to a slightly different hardware
the table may become wrong after live migration.

What would be the best hardware to emulate in order to pass an arbitrary
frequency to the guest ?

Would a pvfreq paravirtualized QEMU hardware and a guest driver implementing
only the callbacks needed to read the frequency be a good idea ?

Best regards

Benoît

ps:
I CC this mail to the other QEMU arch maintainers because the problem must be
the same everywhere where KVM run.
--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux