Patent ID: 8561067

Claim:
A method comprising: setting, by a computer system, an input parameter of a migration command in a test code to a first value to turn off the migration command, the test code to test emulation of a device, by a first hypervisor, the device associated with a guest hosted by the computer system; executing, by the computer system, the test code with the migration command turned off to produce a first result, wherein turning off the migration command causes the guest to maintain association with the first hypervisor; setting, by the computer system, the input parameter of the migration command to a second value to turn on the migration command; executing, by the computer system, the test code with the migration command turned on to produce a second result, wherein the turning on the migration command causes the guest to migrate to a second hypervisor; and determining, using the first result and the second result, whether an error occurs in migration of the guest or in the emulation of the device.