Print this page
13275 bhyve needs richer INIT/SIPI support
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/bhyve/spinup_ap.h
          +++ new/usr/src/cmd/bhyve/spinup_ap.h
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24   * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  25   25   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  26   26   * SUCH DAMAGE.
  27   27   *
  28   28   * $FreeBSD$
  29   29   */
  30   30  
  31   31  #ifndef _SPINUP_AP_H_
  32   32  #define _SPINUP_AP_H_
  33   33  
       34 +#ifdef __FreeBSD__
  34   35  int spinup_ap(struct vmctx *ctx, int vcpu, int newcpu, uint64_t rip);
       36 +#else
       37 +void spinup_halted_ap(struct vmctx *ctx, int newcpu);
       38 +#endif /* __FreeBSD__ */
  35   39  
  36   40  #endif
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX