summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Bruning <max@joyent.com>2011-08-10 07:05:46 -0700
committerMax Bruning <max@joyent.com>2011-08-10 07:05:46 -0700
commit28e4f7d030d01bbe557f70efc89c78bae827822a (patch)
tree8140662d361c30102b40cfe387c17d161bb83d6b
parent06b94f79e459c7c9a936aee0404e06dc547350a5 (diff)
downloadillumos-kvm-28e4f7d030d01bbe557f70efc89c78bae827822a.tar.gz
HVM-553 Qemu isn't cleaning up properly on kvm_run failure with errno 22 (EINVAL)
-rw-r--r--kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm.c b/kvm.c
index 5fc7599..b963eb0 100644
--- a/kvm.c
+++ b/kvm.c
@@ -991,7 +991,7 @@ kvm_disable_largepages(void)
int
is_error_pfn(pfn_t pfn)
{
- return (pfn == bad_pfn);
+ return (pfn == bad_pfn || pfn == 0xffffffffffffffff);
}
static unsigned long