From owner-freebsd-arm@freebsd.org Sat Oct 7 06:50:20 2017 Return-Path: Delivered-To: freebsd-arm@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 DB257E2FBB7 for ; Sat, 7 Oct 2017 06:50:20 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: from mail-vk0-x22f.google.com (mail-vk0-x22f.google.com [IPv6:2607:f8b0:400c:c05::22f]) (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 967DA84F7D for ; Sat, 7 Oct 2017 06:50:20 +0000 (UTC) (envelope-from alexandru.elisei@gmail.com) Received: by mail-vk0-x22f.google.com with SMTP id h4so10714311vkg.0 for ; Fri, 06 Oct 2017 23:50:20 -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=KZxi0LEl46UFDtC77ZO+79vb8d1YOIo37Ju3vI3ucXx14ZLLJH3VQR25LP3wmBkRa6 G1STgPmV/9rUU3oKtnvNF37iKZ+8cmoF31LAZzpCK0i8lNCQuB98ICjtYGcLGldlsCbD h1tM539qw68lLA429dUz2UtLZeWJ2SJoS8VlXXkv6Bwu5rekbzPCpGWtp3BYc314TqVt BlzrptwfcdW6eLIVLYPN/z5AtD0E5yoAmRiP3ISuJlQg8Aj3ziX2bYtfIz7DuBAUNaWK ZqK6YGP7NRoPftoALqtRSI7nNcn7t9kH6PfgFzbPJUv4sHvGcmF0b3+C0lhoYXvEOvda CtpQ== 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=h+apvN9LUhda9A3GQ14iBlWpO6J4cVIetgCvJM5sJtHluscqOl+fHzsSaDNRooAiX+ p7UjFskE1TI2cfLxA4pyxetyZvcADp5cQ/fbkAMMg9ZYn9tIz8geek0NOKUdyfuUPwiw /fShQr2Cg9CYlcKFn8SCwMu3TkpQW7HmQns344WaNALQmL2+DoXHCsGaGDg4QzVhWJfU l3AjHNuwlbjpDwXgb3InAHoCTeyvnVHFKSkWA3Ak+caLTWh3cq0rnusHmFTeEG6DU7ei W+dSm8WhoDrQ+7inMtQP+aMNLm0vGhyKNAIRVofzv+UZtIET34qZUKg8uWLofYavuauR 05nA== X-Gm-Message-State: AMCzsaU4BNPCsNgbwNUHaL+mfmA8amETHzZP5lmIu32WwKenmw+nxZxV MjRHYF84NdEyvFNvUSVi0ie7FMph0vtG9phuFSiN6A== X-Google-Smtp-Source: AOwi7QAXBc7/tXqdvAQydqXYcSMjYV3TUwuE6MpVhvEftD7Z6ILsyYihpL+N7a7FEOSDXgQRbO4MIB90R+nqvIP37+E= X-Received: by 10.31.63.1 with SMTP id m1mr1866483vka.7.1507359019029; Fri, 06 Oct 2017 23:50:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.160.149 with HTTP; Fri, 6 Oct 2017 23:50:18 -0700 (PDT) From: Alexandru Elisei Date: Sat, 7 Oct 2017 09:50:18 +0300 Message-ID: Subject: bhyve on ARMv8 - initarm() and struct arm64_bootparams To: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Oct 2017 06:50:21 -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