mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
esx: Add VMCI device for virtualHW >= 7
This patch fixes an issue where vMotion fails when VMCI device is not present in the vmx file.
This commit is contained in:
parent
2b89f1d8f5
commit
5b36410f37
@ -3383,7 +3383,8 @@ virVMXFormatConfig(virVMXContext *ctx, virDomainXMLOptionPtr xmlopt, virDomainDe
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (virtualHW_version >= 7 && hasSCSI) {
|
||||
if (virtualHW_version >= 7) {
|
||||
if (hasSCSI) {
|
||||
virBufferAddLit(&buffer, "pciBridge0.present = \"true\"\n");
|
||||
|
||||
virBufferAddLit(&buffer, "pciBridge4.present = \"true\"\n");
|
||||
@ -3403,6 +3404,9 @@ virVMXFormatConfig(virVMXContext *ctx, virDomainXMLOptionPtr xmlopt, virDomainDe
|
||||
virBufferAddLit(&buffer, "pciBridge7.functions = \"8\"\n");
|
||||
}
|
||||
|
||||
virBufferAddLit(&buffer, "vmci0.present = \"true\"\n");
|
||||
}
|
||||
|
||||
/* Get final VMX output */
|
||||
if (virBufferCheckError(&buffer) < 0)
|
||||
goto cleanup;
|
||||
|
@ -41,3 +41,4 @@ pciBridge6.functions = "8"
|
||||
pciBridge7.present = "true"
|
||||
pciBridge7.virtualDev = "pcieRootPort"
|
||||
pciBridge7.functions = "8"
|
||||
vmci0.present = "true"
|
||||
|
@ -13,3 +13,4 @@ serial0.fileType = "network"
|
||||
serial0.fileName = "tcp://192.168.0.17:42001"
|
||||
serial0.network.endPoint = "client"
|
||||
serial0.yieldOnMsrRead = "true"
|
||||
vmci0.present = "true"
|
||||
|
@ -13,3 +13,4 @@ serial0.fileType = "network"
|
||||
serial0.fileName = "ssl://0.0.0.0:42001"
|
||||
serial0.network.endPoint = "server"
|
||||
serial0.yieldOnMsrRead = "true"
|
||||
vmci0.present = "true"
|
||||
|
@ -33,3 +33,4 @@ pciBridge6.functions = "8"
|
||||
pciBridge7.present = "true"
|
||||
pciBridge7.virtualDev = "pcieRootPort"
|
||||
pciBridge7.functions = "8"
|
||||
vmci0.present = "true"
|
||||
|
@ -33,3 +33,4 @@ pciBridge6.functions = "8"
|
||||
pciBridge7.present = "true"
|
||||
pciBridge7.virtualDev = "pcieRootPort"
|
||||
pciBridge7.functions = "8"
|
||||
vmci0.present = "true"
|
||||
|
Loading…
Reference in New Issue
Block a user