diff options
| author | johnlev <none@none> | 2008-05-21 16:00:05 -0700 |
|---|---|---|
| committer | johnlev <none@none> | 2008-05-21 16:00:05 -0700 |
| commit | c48ac12eb805b96b1b8d7582c4168b4e4fa56865 (patch) | |
| tree | 89f6e64352bda38778f0899dc7820980ab185bde /usr/src/uts/i86pc/os/machdep.c | |
| parent | b08d8a121e3928c888b68a3e56445554ced82733 (diff) | |
| download | illumos-joyent-c48ac12eb805b96b1b8d7582c4168b4e4fa56865.tar.gz | |
6677804 Can't shutdown Solaris HVM guest with PV drivers
Diffstat (limited to 'usr/src/uts/i86pc/os/machdep.c')
| -rw-r--r-- | usr/src/uts/i86pc/os/machdep.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/src/uts/i86pc/os/machdep.c b/usr/src/uts/i86pc/os/machdep.c index 30861022a6..d39fde3140 100644 --- a/usr/src/uts/i86pc/os/machdep.c +++ b/usr/src/uts/i86pc/os/machdep.c @@ -20,7 +20,7 @@ */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -130,6 +130,11 @@ extern void audit_enterprom(int); extern void audit_exitprom(int); /* + * Occassionally the kernel knows better whether to power-off or reboot. + */ +int force_shutdown_method = AD_UNKNOWN; + +/* * The panicbuf array is used to record messages and state: */ char panicbuf[PANICBUFSIZE]; @@ -174,6 +179,9 @@ mdboot(int cmd, int fcn, char *mdep, boolean_t invoke_cb) affinity_set(CPU_CURRENT); } + if (force_shutdown_method != AD_UNKNOWN) + fcn = force_shutdown_method; + /* * XXX - rconsvp is set to NULL to ensure that output messages * are sent to the underlying "hardware" device using the |
