From owner-freebsd-virtualization@freebsd.org Fri Oct 6 12:18:23 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F428E35B4E for ; Fri, 6 Oct 2017 12:18:23 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: from mail-vk0-x22b.google.com (mail-vk0-x22b.google.com [IPv6:2607:f8b0:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE5FB80D19 for ; Fri, 6 Oct 2017 12:18:22 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: by mail-vk0-x22b.google.com with SMTP id o191so8035253vkd.3 for ; Fri, 06 Oct 2017 05:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0VfDjArqEF7APsHjytCRh9ft/KnWnd1sQaFnmPl+9V8=; b=ctWeyRE4YOubj2jC9BaOEz+dEMB9LSXVjhV7IIytzJr4A2TRXzonJyrhauIs/moSfr Aw+ftO1TR845bA8gCAbBapMp9zkgUxc4Q/xhRJKWwsjK6CHg8LxAeuyn8JrSRQmFatX2 Ntm5Ah2Q2cy+RkzMtEoldZQ6guAQnuzj8kObM85diOC7zj61we/z7cy1/KYM4Zt3DX3B 6HWO/E7AfetcASzowTqmy++s0v/4/NOLOPXiPIC/LUbLPPz0deXUdMJPofpOuhh5IRtA UJ6cs/zMkJSzFb3F6EXdimGSVL/IvhWJ3tqD02zlit8Bnjq11Sj6gnZGa7QqHWVOpX4n 03GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0VfDjArqEF7APsHjytCRh9ft/KnWnd1sQaFnmPl+9V8=; b=RCF2TRIuoGpVoecle9hJ6GLu7EpuTbvd8qjXp1wWNnftNSBbiIG5l2VBByiRwts3tu YJ3k2gNw51ok3DU0f/OoF3Oe12GSHBv59iRZxm4jFglef2k2lqZ91onFNYzQfcu5IIgO NtON7q7uLGlWOH7sjwECCAeFtfV3JJbsJwBZeaPN8kTcuocACUGLK8sTV22gjRcKe1LW F3ubmAC0CayWFR5g+fL+DW3VClwV1BIrjBEDNa6CoNN5NWCDUqPFQo1vvjTq4T3kSv5X qKSEEPVS4g3JFzRB1BRNx4iAxdraVAIGzJpV3qejSkLTF+ktGOPMD9dbaV2mwXrdhjN2 VYQw== X-Gm-Message-State: AMCzsaXgl9sndggOVhCTcO7eY+MlL/QxnQh2FQop+r9ZQnpleKLZopsT UZO6p5A9ztp0ApN9bIolwzE3XIEuZNXLxDwAxh4= X-Google-Smtp-Source: AOwi7QBnbrqwB7RxrQrn0qVDau9uBe143i36nkpigpXHmeBawNE93tx+qGTYg3fYWbgpAF7XB7aFmM9VFJwwxOiQgHM= X-Received: by 10.31.155.139 with SMTP id d133mr801100vke.94.1507292301676; Fri, 06 Oct 2017 05:18:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.160.149 with HTTP; Fri, 6 Oct 2017 05:18:21 -0700 (PDT) From: Alexandru Elisei Date: Fri, 6 Oct 2017 15:18:21 +0300 Message-ID: Subject: bhyve on ARMv8 - initarm() and struct arm64_bootparams To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 12:18:23 -0000 Hello, I am currently working on porting bhyve to ARMv8 and I've managed to start a guest kernel inside bhyve. I am having trouble getting past the initarm() function in the guest and I think the problem is the fact that I am not sending the correct boot parameter arm64_bootparams->modulep to the guest (the other struct variables are computed in locore.S before calling initarm()). As far as I can I can tell modulep is a pointer to the mapped kernel image virtual address where module information is stored, but I don't know how to get that information from the guest kernel when creating the virtual machine. Can anyone provide some help with this issue? Thank you, Alex