Skip to content
  • Roger Pau Monné's avatar
    xen: use an hypercall for shutdown and reboot · ca46f328
    Roger Pau Monné authored
    When running as a Xen guest it's easier to use an hypercall in order
    to do power management operations (power off, power cycle). Do this
    for all supported guest types (HVM and PVH). Note that for HVM the
    power operation could also be done using ACPI, but there's no reason
    to differentiate between PVH and HVM.
    
    While there fix the shutdown handler to properly differentiate between
    power cycle and power off requests.
    
    Reported by: Freddy DISSAUX
    MFC: 1 week
    Sponsored by: Citrix Systems R&D
    ca46f328