Re: [PATCH 0/4] Add new APIs and virsh commands to get/set cpu mode

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

 



On 12/10/2012 06:19 AM, Ichikawa, Ken wrote:
Hello.

This patchset adds new APIs virDomainGetCPUMode and virDomainSetCPUMode,
and adds new virsh commands cpu-getmode and cpu-setmode by using these APIs.

virDomainGetCPUMode allows to get cpu mode of a running or persistent domain.
virDomainSetCPUMode allows to set cpu mode of a persistent domain.

These APIs and virsh commands are useful because:
  - No longer need to mess around with XML for changing cpu mode.
  - People who want more performance can change cpu mode easily.
  - If there is a person who has a trouble with host-mode and
    host-passthrough, we can help easily by one-liner like
      "# virsh cpu-setmode <domain> custom"
    Then, default cpu is used after next boot.


Specifying custom mode without allowing to either provide the full CPU
XML element or additional arguments like cpu model, features, matching
policy, etc..,, doesn't seem to be right.
On the other hand, allowing this would reduce the benefit of your
proposal.
Since this is an operation that works only on the persistent
configuration I would maintain that it is acceptable to modify
the domain definition, e.g. by means of virsh edit.

--

Mit freundlichen Grüßen/Kind Regards
   Viktor Mihajlovski

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]