From owner-freebsd-virtualization@freebsd.org Sat Jul 13 21:17:41 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D47115CCD6D for ; Sat, 13 Jul 2019 21:17:41 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27AEC6F8D3 for ; Sat, 13 Jul 2019 21:17:40 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: by mail-qk1-x736.google.com with SMTP id d79so8970648qke.11 for ; Sat, 13 Jul 2019 14:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7FdNLWjDoczwavs1O2LNFRK582/vEaVryvlPsHvD4sg=; b=p+Y6lmorm7SgeZryIqp3Wwg8TgyPM9EQnur9iiCZ38ZOyfoQKv4i/uhRr/d0P+NUYN vtiW1lKbsO8KpLXQdDznRoXTs5F62uKxgslR/X1lj+bbTK0++O8C6v8gq1VIHyJSMcn9 y3HaJiWX6hnoU6ZuLegag98iKpjyfH3uwrnulIaIYQ74pwC74qVpaZjzbkxlP17CsoRD TXYUuEaPTL6JSV3RqmPt9aHROG5Qc67o0O/orEwqhd6axEvzu5jsm18yC96dxKn75qjn cEKM/A3bclPgO4Ylxiu/KrKTn6pPu3Z2jkWiYB1x4uUtyKsp5eo43XJwctLSWds2pQ0f aMrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7FdNLWjDoczwavs1O2LNFRK582/vEaVryvlPsHvD4sg=; b=KZiVmTlxEsRSCgkg6VSKWlhnRWuaySVVv6aBksiwo/0AN93osa+tZsMuZ9bDV/On3f jfWg7eyKQIaycd+DPVK9tCIaUH5VRLJFeY+AEEQ9v3grnwxHubVcm+UxnkC7/Sc9Ulrz F7fHIgLtiiQzgU3FJbAZZ3XaMdWD9s4uReCNJGMrz1szhiyBm6uSBbTBA8X5y9jweQVO mFrqcQflUoW99P26yeGJI0dGp8Frvz0mOGCPoTo9vna84ZukEFCDn102LV9pxVhrfYme CBu+WlCh/5eoKt5qMWHo4odmpNjIZIXJweh2+80Bac9WHfWhc0NrM0D4sUz/AGfaZ+0E T/wg== X-Gm-Message-State: APjAAAX3BUjv73Gley5vlTumAnoQgZ+YKslJX8ERngnSyNU/8hyji/Ki czdsdTffxr7FXGiryMAhy2pb+L/cDvo3Kla3x/Q= X-Google-Smtp-Source: APXvYqyCdzfQJgYAecK9weaPXWBhdv8pQUV+x131USWtKzXqmyhWQbwSMRlDxltfJ0efgOTpcIi7gi0H687j4W2oMoI= X-Received: by 2002:a05:620a:11ac:: with SMTP id c12mr10967450qkk.232.1563052659446; Sat, 13 Jul 2019 14:17:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Darius Mihai Date: Sun, 14 Jul 2019 00:17:02 +0300 Message-ID: Subject: Re: bhyve/arm64 status To: Kamil Koczurek , freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 27AEC6F8D3 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=p+Y6lmor; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dariusmihaim@gmail.com designates 2607:f8b0:4864:20::736 as permitted sender) smtp.mailfrom=dariusmihaim@gmail.com X-Spamd-Result: default: False [-6.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.43)[-0.430,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[6.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.01)[alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-3.01)[ip: (-9.38), ipnet: 2607:f8b0::/32(-3.18), asn: 15169(-2.44), country: US(-0.06)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 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: Sat, 13 Jul 2019 21:17:41 -0000 On Fri, Jul 12, 2019 at 1:45 PM Kamil Koczurek wrote: > > On Thu, Jul 11, 2019 at 6:24 PM Darius Mihai wrote: > > > > On Thu, Jul 11, 2019 at 4:01 PM Darius Mihai wrote: > > > > > > On Thu, Jul 11, 2019 at 1:09 PM Kamil Koczurek wrote: > > > > > > > > I'm trying to cross-compile bhyve for espressobin myself, but I've > > > > come across some problems. `make buildworld`* throws the following > > > > errors: > > > > > > > > 1. on branch bhyvearm64: > > > > ``` > > > > make[4]: make[4]: don't know how to make bhyvectl.1. Stop > > > > ``` > > > > > > > > 2. on branch bhyvearm64_refactor: > > > > ``` > > > > In file included from > > > > /root/bhyve/ehh/freebsd/usr.sbin/bhyve/mmio//devemu_irq.c:14: > > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:36:1: error: > > > > type specifier missing, defaults to 'int' > > > > [-Werror,-Wimplicit-int] > > > > DECLARE_CLASS(vtmmio_driver); > > > > ^ > > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:36:15: > > > > error: a parameter list without types is only allowed in a function > > > > definition > > > > DECLARE_CLASS(vtmmio_driver); > > > > ^ > > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:41:2: error: > > > > unknown type name 'device_t' > > > > device_t dev; > > > > ^ > > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:42:2: error: > > > > unknown type name 'device_t' > > > > device_t platform; > > > > ^ > > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:49:2: error: > > > > unknown type name 'device_t' > > > > device_t vtmmio_child_dev; > > > > ^ > > > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:57:19: > > > > error: a parameter list without types is only allowed in a function > > > > definition > > > > int vtmmio_attach(device_t); > > > > ^ > > > > ``` > > > > > > > > Both builds were done on freshly installed FreeBSD 13.0 / amd64. I can > > > > supply full logs if anybody wants to take a look at them. > > > > > > > > * Using supplied build scripts from bhyvearm64-utils gives the same results. > > > > > > Hello, > > > > > > You didn't mention where you got the code from. I assume it's the one > > > at https://github.com/FreeBSD-UPB/freebsd/tree/projects/bhyvearm64-refactor. > > > I'll try building it on my side to see why you're getting those errors. > > > > > > All the best, > > > Darius > > > > Hello again, > > > > Try updating the git branch now. > > > > The issue was caused by using the defines under > > /sys/dev/virtio/mmio/virtio_mmio.h by including the header from > > /sys/dev/virtio/mmio; at some point, the header added a class > > definition and structure that rely on other includes being added > > before including the 'virtio_mmio.h' header. I have added a local copy > > of the header with only the defines in it to bypass this issue. Give > > it a try and let me know how it works. > > > > All the best, > > Darius > > Hello, > > The updated version compiles (and runs) just fine, thank you. I've got > a second question though -- I'm trying to create a guest image, but > can't work out the usage of disk.py > (https://github.com/FreeBSD-UPB/bhyvearm64-utils/blob/master/disk.py). > Can you point me in the right direction? > > Sincerely, > Kamil > Hello, Unfortunately, I'm not entirely sure how it should work. The script was written by Alexandru Elisei; maybe he can provide some more information. All the best, Darius