From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18807 invoked from network); 10 Dec 2020 23:18:30 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 10 Dec 2020 23:18:30 -0000 Received: from mail-wm1-f49.google.com ([209.85.128.49]) by ewsd; Thu Dec 10 18:12:59 -0500 2020 Received: by mail-wm1-f49.google.com with SMTP id c198so6074668wmd.0 for <9front@9front.org>; Thu, 10 Dec 2020 15:12:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=offblast-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=YHW9bZ/lpzEPW9k5UPMNyBoZRStD3hFK3AYfq3Bi0TE=; b=M1uqHNLUsvEjcSKM0v4+Rm8Eum5Q7xsp8zvv25cbPOFDdsqUtPfRv5ylUzxKmCzdbV FcfbpZtSSDkkJOam7BizOLWgJ5EcxKM/D3lgps0rs9k4DHFoLffbUWfq08FKajiXkwoh tGLIcNHwT8mFvYBu6sxAd7IuZa5jpGCIh7Y+jQINQ5pmXwTjcTv+VFRb3OOdbuzgLdHe yuk0BxUUs3tT08R36Pio50yd0KjV4kwgaq/JiM3qjo8dRolKFUG+OJPDM48SidIhDmao 4md2RQ3rxVvsN09mqoNNYNrG7UrY0JT0x6DAe4fvKe5pVbVvqkeEvaJ4V2VIekX01EZA uJ1g== 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=YHW9bZ/lpzEPW9k5UPMNyBoZRStD3hFK3AYfq3Bi0TE=; b=gwffGoguYSOWRJxWR6mBo53Z7KNgzyutTvG8aMIKKKXDTFm1AM+lV8/56SfPLvpNxa rYOfdkghhFHV9eMvntQpUFSta4cU/2gM/xmHxNEagC2kOtagfAGQWD8PSkZerRfGzOWl Lm9j8T6mzSh/kapERtBaI6S4rW6Q97CQUBvwI4Dn4N7CnJhr0WF3jOXE5hBuZwObd1zV vqRjM9BjukoVRVKrNLratgv5DUZ3f8/Ssz8WKRtJ+c0esiZn/sydWxXcZxwO06ssmsCH fjOoPo9qGK1ItMAYVzv3h4hW+k0u07weoktytbjbh542zcGbe52nERTk8AOSyvhSQPpc t+HQ== X-Gm-Message-State: AOAM5315ZDLw73r3pHlO6+2PGB8nrWjAwArRvm+sF/y8WGgDH5bE5/f9 VoUyHu4Kn801EI/9XdprT5P+4RZfB0VWVCnGq+/4+vG2KmU= X-Google-Smtp-Source: ABdhPJwLpG3KI93iVNCnnO4WVzLO+CtdTGwRpt2jKtF4/rGfN7Qnl3u/+QbHpnIIDyZzdqbwyfKiNKinpN/KGTSeHxg= X-Received: by 2002:a1c:ddd5:: with SMTP id u204mr10401602wmg.174.1607641974778; Thu, 10 Dec 2020 15:12:54 -0800 (PST) MIME-Version: 1.0 References: <5D95EB31-AA3C-4D20-A314-568A308A4CE2@gmail.com> In-Reply-To: <5D95EB31-AA3C-4D20-A314-568A308A4CE2@gmail.com> From: Nick Owens Date: Thu, 10 Dec 2020 15:12:43 -0800 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: responsive session ActivityPub over XML property information layer Subject: Re: [9front] kernel crash in bhyve Reply-To: 9front@9front.org Precedence: bulk you cannot just read #P/msr at offset 0. the offset is significant. io -M can be used to read an MSR at a specific offset. On Thu, Dec 10, 2020 at 12:37 PM Xiao-Yong Jin wrote: > > > On Dec 10, 2020, at 5:30 AM, cinap_lenrek@felloff.net wrote: > > > > Btw, would it be possible for you to file a bug > > with bhyve? > > > > I do not have a bsd installation nor do i want to > > subscribe to their mailinglist right now. > > > > The issue is that the mtrr values they give us > > are basically useless. > > > > Qemu, vmware and everyone else gets this right. > > > > The simplest fix might be that they just change > > cpuid to tell the guest that mtrr is not supported. > > > > -- > > cinap > > I'm not sure I understand the issue completely. > > I was using a specific debug switch '-w' in bhyve. > > -w Ignore accesses to unimplemented Model Specific > Registers (MSRs). This is intended for debug > purposes. > > Because previously, 9front wouldn't boot without this flag. > Now I guess you added more error checking during the boot, > and 9front boots fine without this '-w'. However, without > this '-w' to bhyve, the MTRR code you gave me produces an > error, > > rdmsr to register 0xc0010010 on vcpu 0 > rdmsr c0010010: bad arg in system call > range 0 1000000000 ( 1000000000) uc > cache 0x0000000000000000 68719476736 uc > > It looks like '#P/msr' just cannot be read. > > ; cat '#P/msr' > cat: error reading #P/msr: bad arg in system call >