cpu: Add support for CPU vendor

By specifying <vendor> element in CPU requirements a guest can be
restricted to run only on CPUs by a given vendor. Host CPU vendor is
also specified in capabilities XML.

The vendor is checked when migrating a guest but it's not forced, i.e.,
guests configured without <vendor> element can be freely migrated.
This commit is contained in:
Jiri Denemark
2010-07-02 17:51:59 +02:00
parent d9332c23b4
commit af53714f47
13 changed files with 389 additions and 32 deletions

View File

@@ -83,6 +83,7 @@ virCapsPtr testQemuCapsInit(void) {
0, /* match */
(char *) "x86_64", /* arch */
(char *) "core2duo", /* model */
(char *) "Intel", /* vendor */
1, /* sockets */
2, /* cores */
1, /* threads */