[libvirt] [PATCH v4 11/11] qemu: Add swtpm to emulator cgroup

Stefan Berger stefanb at linux.vnet.ibm.com
Tue May 15 15:25:58 UTC 2018


On 05/10/2018 05:57 PM, Stefan Berger wrote:
> Add the external swtpm to the emulator cgroup so that upper limits of CPU
> usage can be enforced on the emulated TPM.

I haven't made any changes to this yet. A possibility would be to put 
swtpm into its own tpm-emulator cgroup and extend the XML for the TPM to 
also have 'period' and 'quota':

     <tpm model='tpm-tis'>
       <backend type='emulator'>
         <period>1000</period>
         <quota>500</quota>
       </backend>
     </tpm>

Or we add the following to cputune:

         <tpm_emulator_period>1000</tpm_emulator_period>
         <tpm_emulator_quota>500</tpm_emulator_quota>

The latter would be more consistent, though i would prefer the former.

    Stefan




More information about the libvir-list mailing list