HVM guests which do not include PV drivers will not shutdown after a
simple "xl shutdown". Add a runvar to indicate that the guest will
shutdown in response to an ACPI power event and apply this to the win7
and winxp test jobs.
Tested with:
test-amd64-amd64-xl-qemuu-winxpsp3
test-amd64-amd64-xl-qemuu-win7-amd64
test-amd64-amd64-xl-qemuu-debianhvm-amd64
test-amd64-amd64-xl
The first two correctly used the extra flag and the domains shutdown,
the other two correctly didn't use the extra flag and still shutdown.
Not currently implemented for libvirt, since we currently have no
libvirt tests I could try it with.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
my ($self,$gho,$timeout) = @_;
my $ho = $self->{Host};
my $gn = $gho->{Name};
- target_cmd_root($ho,"$self->{_Command} shutdown -w $gn", $timeout);
+ my $acpi_fallback = guest_var($gho,'acpi_shutdown','false') eq 'true'
+ ? "F" : "";
+ target_cmd_root($ho,"$self->{_Command} shutdown -w${acpi_fallback} $gn", $timeout);
}
sub migrate_check ($) {
test-$xenarch$kern-$dom0arch-$toolstack$qemuu_suffix-winxpsp3$vcpus_suffix \
test-win $toolstack $xenarch $dom0arch $qemuu_runvar \
win_image=winxpsp3.iso $vcpus_runvars \
+ win_acpi_shutdown=true \
all_hostflags=$most_hostflags,hvm
done
job_create_test test-$xenarch$kern-$dom0arch-xl$qemuu_suffix-win7-amd64 \
test-win xl $xenarch $dom0arch $qemuu_runvar \
win_image=win7-x64.iso \
+ win_acpi_shutdown=true \
all_hostflags=$most_hostflags,hvm
}