svn commit: r355839 - head/lib/libvmmapi

2019-12-16 Thread Marcelo Araujo
Author: araujo Date: Tue Dec 17 01:37:02 2019 New Revision: 355839 URL: https://svnweb.freebsd.org/changeset/base/355839 Log: Forgotten to remove the previous if statement in commit r355838. MFC after:1 month Differential Revision:https://reviews.freebsd.org/D19400 Modified:

svn commit: r355838 - head/lib/libvmmapi

2019-12-16 Thread Marcelo Araujo
Author: araujo Date: Tue Dec 17 01:33:26 2019 New Revision: 355838 URL: https://svnweb.freebsd.org/changeset/base/355838 Log: Attempt to load vmm(4) module before creating a guest using vm_create() wrapper in libvmmapi. Submitted by: Rob Fairbanks Reviewed by: jhb MFC after:1 mo

svn commit: r351541 - stable/12/sys/dev/sound/pci/hda

2019-08-27 Thread Marcelo Araujo
Author: araujo Date: Tue Aug 27 07:17:31 2019 New Revision: 351541 URL: https://svnweb.freebsd.org/changeset/base/351541 Log: MFC r350433: Fix sound on headset jack for ALC255 and ALC256 codec. PR: 219350 [1], [2] Submitted by: Masachika ISHIZUKA (ish_at_amail.plala.or.jp) [1]

svn commit: r350433 - head/sys/dev/sound/pci/hda

2019-07-29 Thread Marcelo Araujo
Author: araujo Date: Tue Jul 30 02:01:49 2019 New Revision: 350433 URL: https://svnweb.freebsd.org/changeset/base/350433 Log: Fix sound on headset jack for ALC255 and ALC256 codec. PR: 219350 [1], [2] Submitted by: Masachika ISHIZUKA (ish_at_amail.plala.or.jp) [1]

svn commit: r349361 - head/usr.sbin/bhyve

2019-06-24 Thread Marcelo Araujo
Author: araujo Date: Tue Jun 25 06:24:56 2019 New Revision: 349361 URL: https://svnweb.freebsd.org/changeset/base/349361 Log: Add SPDX tags to bhyve(8) HD Audio device. Reviewed by: bcran Differential Revision:https://reviews.freebsd.org/D20750 Replaced: head/usr.sbin/bhyve/au

Re: svn commit: r345171 - head/usr.sbin/bhyve

2019-03-15 Thread Marcelo Araujo
ype) > > > > > > bzero(&pciecap, sizeof(pciecap)); > > > > > > > > > > > > pciecap.capid = PCIY_EXPRESS; > > > > > > - pciecap.pcie_capabilities = PCIECAP_VERSION | > > > PCIEM_TYPE_ROOT_PORT; > &

Re: svn commit: r345171 - head/usr.sbin/bhyve

2019-03-15 Thread Marcelo Araujo
n/bhyve/pci_emul.c > > > > > === > > > > > === > > > > > --- head/usr.sbin/bhyve/pci_emul.c Fri Mar 15 02:11:27 2019 > (r3 > > > > > 45170) > > > > > +++ head/usr.sb

Re: svn commit: r345171 - head/usr.sbin/bhyve

2019-03-15 Thread Marcelo Araujo
= PCIY_EXPRESS; > > > - pciecap.pcie_capabilities = PCIECAP_VERSION | > > > PCIEM_TYPE_ROOT_PORT; > > > + pciecap.pcie_capabilities = PCIECAP_VERSION | type; > > > + /* Devices starting with version 1.1 must set the RBER bit */ > > > + if (PCIECAP_VERSION >= 1) > &g

Re: svn commit: r345158 - head/usr.sbin/bhyve

2019-03-14 Thread Marcelo Araujo
the Illumos guys: https://reviews.freebsd.org/D19499 Pending now bhyve maintainer to approve it. Dark days, we had 2 committers trying to fix the same thing and our hands are tied. Best, -- -- Marcelo Araujo(__)ara...@freebsd.org \\\'',)http://www.FreeBSD.or

Re: svn commit: r345050 - head/bin/date

2019-03-12 Thread Marcelo Araujo
On Wed, Mar 13, 2019, 12:57 AM Warner Losh > > On Tue, Mar 12, 2019, 9:43 AM John Baldwin wrote: > >> On 3/11/19 10:43 PM, Warner Losh wrote: >> > On Mon, Mar 11, 2019 at 11:25 PM Rodney W. Grimes < >> free...@gndrsh.dnsmgr.net> >> > wrote: >> > >> Author: imp >> Date: Tue Mar 12 04:49:

svn commit: r343642 - head/usr.sbin/bhyve

2019-01-31 Thread Marcelo Araujo
Author: araujo Date: Fri Feb 1 03:09:11 2019 New Revision: 343642 URL: https://svnweb.freebsd.org/changeset/base/343642 Log: Revert r343634: Mostly a cosmetic change to replace strlen with strnlen. Requested by: kib and imp Modified: head/usr.sbin/bhyve/bhyverun.c head/usr.sbin/bhyv

Re: svn commit: r343634 - head/usr.sbin/bhyve

2019-01-31 Thread Marcelo Araujo
Em sex, 1 de fev de 2019 às 09:21, Konstantin Belousov escreveu: > On Fri, Feb 01, 2019 at 09:05:37AM +0800, Marcelo Araujo wrote: > > Em sex, 1 de fev de 2019 às 09:01, Konstantin Belousov < > kostik...@gmail.com> > > escreveu: > > > > > On Fri, Feb 01, 2

Re: svn commit: r343634 - head/usr.sbin/bhyve

2019-01-31 Thread Marcelo Araujo
Em sex, 1 de fev de 2019 às 09:01, Konstantin Belousov escreveu: > On Fri, Feb 01, 2019 at 08:40:11AM +0800, Marcelo Araujo wrote: > > Em sex, 1 de fev de 2019 às 08:36, Warner Losh > escreveu: > > > > > > > > > > > On Thu, Jan 31, 2019, 4:46 PM Ko

Re: svn commit: r343634 - head/usr.sbin/bhyve

2019-01-31 Thread Marcelo Araujo
Em sex, 1 de fev de 2019 às 08:36, Warner Losh escreveu: > > > On Thu, Jan 31, 2019, 4:46 PM Konstantin Belousov wrote: > >> On Thu, Jan 31, 2019 at 11:32:19PM +0000, Marcelo Araujo wrote: >> > Author: araujo >> > Date: Thu Jan 31 23:32:19 2019 >&

svn commit: r343634 - head/usr.sbin/bhyve

2019-01-31 Thread Marcelo Araujo
Author: araujo Date: Thu Jan 31 23:32:19 2019 New Revision: 343634 URL: https://svnweb.freebsd.org/changeset/base/343634 Log: Mostly a cosmetic change to replace strlen with strnlen. Obtained from:Project ACRN MFC after:2 weeks Modified: head/usr.sbin/bhyve/bhyverun.c hea

svn commit: r343602 - stable/12/usr.sbin/bhyve

2019-01-31 Thread Marcelo Araujo
Author: araujo Date: Thu Jan 31 07:08:37 2019 New Revision: 343602 URL: https://svnweb.freebsd.org/changeset/base/343602 Log: MFC r343077: Fix broken uart on Win2016 guest. Obtained from:Joyent (commit/2bf1a940afbd1382faff159e7c93c72779ca10f4) Modified: stable/12/usr.sbin/bh

svn commit: r343077 - head/usr.sbin/bhyve

2019-01-15 Thread Marcelo Araujo
Author: araujo Date: Wed Jan 16 03:46:27 2019 New Revision: 343077 URL: https://svnweb.freebsd.org/changeset/base/343077 Log: Fix broken uart on Win2016 guest. Obtained from:Joyent (commit/2bf1a940afbd1382faff159e7c93c72779ca10f4) MFC after:3 weeks. Modified: head/usr.sbin/

svn commit: r343068 - head/usr.sbin/bhyve

2019-01-15 Thread Marcelo Araujo
Author: araujo Date: Wed Jan 16 00:39:23 2019 New Revision: 343068 URL: https://svnweb.freebsd.org/changeset/base/343068 Log: Use capsicum_helpers(3) that allow us to simplify the code and its functions will return success when the kernel is built without support of the capability mode.

Re: svn commit: r342349 - head/usr.sbin/ctladm

2018-12-21 Thread Marcelo Araujo
Em sáb, 22 de dez de 2018 às 02:53, Alexander Motin escreveu: > On 21.12.2018 13:37, Marcelo Araujo wrote: > > Em sáb, 22 de dez de 2018 às 01:22, Alexander Motin > <mailto:m...@freebsd.org>> escreveu: > > > > Author: mav > > Date: Fri Dec 21 17:

Re: svn commit: r342349 - head/usr.sbin/ctladm

2018-12-21 Thread Marcelo Araujo
int fd, int argc, char **argv, char > *c > printf("LUN %d modified successfully\n", lun_id); > > bailout: > - nvlist_destroy(req.args_nvl); > + nvlist_destroy(option_list); > return (retval); > } > > > -- -- Marcelo Araujo

svn commit: r342184 - stable/12/usr.sbin/bhyve

2018-12-17 Thread Marcelo Araujo
Author: araujo Date: Tue Dec 18 03:00:12 2018 New Revision: 342184 URL: https://svnweb.freebsd.org/changeset/base/342184 Log: MFC r340707: Define AHCI_PORT_IDENT and increase by 1 the VTBLK_BLK_ID_BYTES to avoid buffer accessed out of bounds, also switch to snprintf(3). PR:

Re: svn commit: r342083 - stable/12/usr.sbin/bhyve

2018-12-14 Thread Marcelo Araujo
Your mfc was quite fast less than 1 week, usually we take a bit more of time before we do the mfc! On Fri, Dec 14, 2018, 10:49 PM Alexander Motin Author: mav > Date: Fri Dec 14 14:49:04 2018 > New Revision: 342083 > URL: https://svnweb.freebsd.org/changeset/base/342083 > > Log: > MFC r341829: A

svn commit: r341757 - stable/12/usr.sbin/bhyve

2018-12-08 Thread Marcelo Araujo
Author: araujo Date: Sun Dec 9 06:41:57 2018 New Revision: 341757 URL: https://svnweb.freebsd.org/changeset/base/341757 Log: MFC r340046, r340050 r340046: Add support ps/2 scancodes for NumLock, ScrollLock and numerical keypad keys. PR: 213835 Submitted by: Vasily Post

svn commit: r341758 - stable/11/usr.sbin/bhyve

2018-12-08 Thread Marcelo Araujo
Author: araujo Date: Sun Dec 9 06:42:06 2018 New Revision: 341758 URL: https://svnweb.freebsd.org/changeset/base/341758 Log: MFC r340046, r340050 r340046: Add support ps/2 scancodes for NumLock, ScrollLock and numerical keypad keys. PR: 213835 Submitted by: Vasily Post

svn commit: r341761 - stable/12/usr.sbin/bhyve

2018-12-08 Thread Marcelo Araujo
Author: araujo Date: Sun Dec 9 06:48:44 2018 New Revision: 341761 URL: https://svnweb.freebsd.org/changeset/base/341761 Log: MFC r340211: Comestic change to try to inline the memset with SSE/AVX instructions. Also switch from int to size_t to keep portability. Reviewed by: brooks

Re: svn commit: r340722 - head/lib/libbe

2018-11-21 Thread Marcelo Araujo
On Thu, Nov 22, 2018, 12:19 AM Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net wrote: > > Author: 0mp (ports committer) > > Date: Wed Nov 21 11:22:44 2018 > > New Revision: 340722 > > URL: https://svnweb.freebsd.org/changeset/base/340722 > > > > Log: > > libbe(3): Put each error value in separ

Re: svn commit: r340707 - head/usr.sbin/bhyve

2018-11-20 Thread Marcelo Araujo
Em qua, 21 de nov de 2018 às 08:23, Shawn Webb escreveu: > On Tue, Nov 20, 2018 at 10:21:19PM +0000, Marcelo Araujo wrote: > > Author: araujo > > Date: Tue Nov 20 22:21:19 2018 > > New Revision: 340707 > > URL: https://svnweb.freebsd.org/changeset/base/34070

svn commit: r340707 - head/usr.sbin/bhyve

2018-11-20 Thread Marcelo Araujo
Author: araujo Date: Tue Nov 20 22:21:19 2018 New Revision: 340707 URL: https://svnweb.freebsd.org/changeset/base/340707 Log: Define AHCI_PORT_IDENT and increase by 1 the VTBLK_BLK_ID_BYTES to avoid buffer accessed out of bounds, also switch to snprintf(3). PR: 200859 Submitte

svn commit: r340211 - head/usr.sbin/bhyve

2018-11-06 Thread Marcelo Araujo
Author: araujo Date: Wed Nov 7 06:29:01 2018 New Revision: 340211 URL: https://svnweb.freebsd.org/changeset/base/340211 Log: Comestic change to try to inline the memset with SSE/AVX instructions. Also switch from int to size_t to keep portability. Reviewed by: brooks Sponsored by: iXs

svn commit: r340210 - head/usr.sbin/bhyve

2018-11-06 Thread Marcelo Araujo
Author: araujo Date: Wed Nov 7 04:20:29 2018 New Revision: 340210 URL: https://svnweb.freebsd.org/changeset/base/340210 Log: Revert my bogus attempt to silence coverity on r340045, it created more bad side effects than good. PR: 233038 Submitted by: We Maag Modified: head

Re: svn commit: r340046 - head/usr.sbin/bhyve

2018-11-02 Thread Marcelo Araujo
Em sex, 2 de nov de 2018 às 21:37, Dmitry Luhtionov < dmitryluhtio...@gmail.com> escreveu: > I think you need to remove `printf("keysym 0x%x\n", keysym);` from line > 322 > Done at: https://svnweb.freebsd.org/changeset/base/340050 Thank you to spot that. Best

svn commit: r340050 - head/usr.sbin/bhyve

2018-11-02 Thread Marcelo Araujo
Author: araujo Date: Fri Nov 2 13:48:06 2018 New Revision: 340050 URL: https://svnweb.freebsd.org/changeset/base/340050 Log: Remove printf for debug purpose forgotten on r340046. Reported by: Dmitry Luhtionov Modified: head/usr.sbin/bhyve/ps2kbd.c Modified: head/usr.sbin/bhyve/ps2kbd

svn commit: r340046 - head/usr.sbin/bhyve

2018-11-02 Thread Marcelo Araujo
Author: araujo Date: Fri Nov 2 08:28:14 2018 New Revision: 340046 URL: https://svnweb.freebsd.org/changeset/base/340046 Log: Add support ps/2 scancodes for NumLock, ScrollLock and numerical keypad keys. PR: 213835 Submitted by: Vasily Postnicov MFC after:4 weeks Reln

svn commit: r340045 - head/usr.sbin/bhyve

2018-11-02 Thread Marcelo Araujo
Author: araujo Date: Fri Nov 2 08:03:19 2018 New Revision: 340045 URL: https://svnweb.freebsd.org/changeset/base/340045 Log: Fix resource leak when using strdup(3). Reported by: Coverity CID: 1357337 Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/pci_fbuf.c Mo

svn commit: r340044 - head/usr.sbin/bhyve

2018-11-02 Thread Marcelo Araujo
Author: araujo Date: Fri Nov 2 08:01:42 2018 New Revision: 340044 URL: https://svnweb.freebsd.org/changeset/base/340044 Log: Fix resource leak when using strdup(3). Reported by: Coverity CID: 1357336 Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/pci_xhci.c Mo

svn commit: r340043 - head/usr.sbin/bhyve

2018-11-02 Thread Marcelo Araujo
Author: araujo Date: Fri Nov 2 07:59:28 2018 New Revision: 340043 URL: https://svnweb.freebsd.org/changeset/base/340043 Log: Fix resource leak, variable fd going out of scope. Reported by: Coverity CID: 1204383 Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/pci

svn commit: r340042 - head/usr.sbin/bhyve

2018-11-02 Thread Marcelo Araujo
Author: araujo Date: Fri Nov 2 07:57:28 2018 New Revision: 340042 URL: https://svnweb.freebsd.org/changeset/base/340042 Log: Fix resource leak, variables cp, xopts and nopt going out of scope. Reported by: Coverity CID: 1305412 Sponsored by: iXsystems Inc. Modified: head/u

Re: svn commit: r339936 - head/sys/amd64/vmm/amd

2018-10-31 Thread Marcelo Araujo
On Wed, Oct 31, 2018, 10:07 PM Shawn Webb wrote: > On Wed, Oct 31, 2018 at 01:27:44AM +0000, Marcelo Araujo wrote: > > Author: araujo > > Date: Wed Oct 31 01:27:44 2018 > > New Revision: 339936 > > URL: https://svnweb.freebsd.org/changeset/base/339936 > > >

svn commit: r339936 - head/sys/amd64/vmm/amd

2018-10-30 Thread Marcelo Araujo
Author: araujo Date: Wed Oct 31 01:27:44 2018 New Revision: 339936 URL: https://svnweb.freebsd.org/changeset/base/339936 Log: Merge cases with upper block. This is a cosmetic change only to simplify code. Reported by: anish Sponsored by: iXsystems Inc. Modified: head/sys/amd64/vmm/a

svn commit: r339911 - head/sys/amd64/vmm/amd

2018-10-30 Thread Marcelo Araujo
Author: araujo Date: Tue Oct 30 10:02:23 2018 New Revision: 339911 URL: https://svnweb.freebsd.org/changeset/base/339911 Log: Emulate machine check related MSR_EXTFEATURES to allow guest OSes to boot on AMD FX Series. PR: 224476 Submitted by: Keita Uchida Reviewed by: rgri

svn commit: r339909 - head/sys/net

2018-10-30 Thread Marcelo Araujo
Author: araujo Date: Tue Oct 30 09:53:57 2018 New Revision: 339909 URL: https://svnweb.freebsd.org/changeset/base/339909 Log: Allow changing lagg(4) MTU. Previously, changing the MTU would require destroying the lagg and creating a new one. Now it is allowed to change the MTU of the lag

Re: svn commit: r338451 - stable/11/usr.bin/last

2018-09-04 Thread Marcelo Araujo
2018-09-04 18:09 GMT+08:00 Philip Paeps : > On 2018-09-04 17:59:30 (+0800), Marcelo Araujo wrote: > >> 2018-09-04 17:53 GMT+08:00 Philip Paeps : >> >> Author: philip >>> Date: Tue Sep 4 09:53:45 2018 >>> New Revision: 338451 >>> URL: https://s

Re: svn commit: r338451 - stable/11/usr.bin/last

2018-09-04 Thread Marcelo Araujo
(long)delta / 86400, ct); > } > + > +end: > + xo_close_instance("last"); > } > > /* > @@ -423,7 +446,7 @@ addarg(int type, char *arg) > ARG *cur; > > if ((cur = malloc(sizeof(ARG))) == NULL) > -

svn commit: r338242 - head/usr.sbin/bhyve

2018-08-23 Thread Marcelo Araujo
Author: araujo Date: Thu Aug 23 07:34:51 2018 New Revision: 338242 URL: https://svnweb.freebsd.org/changeset/base/338242 Log: Add manpage entry for the new bhyve options -s "help" and -l "help". Reported by: 0mp Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/bhyve.8 Modif

svn commit: r338210 - head/usr.sbin/bhyve

2018-08-22 Thread Marcelo Araujo
Author: araujo Date: Wed Aug 22 20:23:08 2018 New Revision: 338210 URL: https://svnweb.freebsd.org/changeset/base/338210 Log: Add -s "help" and -l "help" to print a list of supported PCI and LPC devices. For tools that uses bhyve such like libvirt, it is important to be able to probe what

svn commit: r338164 - head/usr.sbin/bhyve

2018-08-21 Thread Marcelo Araujo
Author: araujo Date: Tue Aug 21 23:11:26 2018 New Revision: 338164 URL: https://svnweb.freebsd.org/changeset/base/338164 Log: Fix resource leak when using strdup(3). Reported by: Coverity CID: 1394929 Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/pci_nvme.c Mo

svn commit: r338133 - head/usr.sbin/gstat

2018-08-21 Thread Marcelo Araujo
Author: araujo Date: Tue Aug 21 11:22:49 2018 New Revision: 338133 URL: https://svnweb.freebsd.org/changeset/base/338133 Log: - Add CSV output to gstat via -C flag. Add a -C option, similar to -B, that allows gstat to produce basic CSV output with absolute timestamps (ISO 8601, nearly.) M

svn commit: r338089 - head/usr.sbin/bhyve

2018-08-19 Thread Marcelo Araujo
Author: araujo Date: Mon Aug 20 04:56:37 2018 New Revision: 338089 URL: https://svnweb.freebsd.org/changeset/base/338089 Log: NVMe spec version 1.3c says that "serial number" field must be 7-bit ASCII, with unused bytes padded by space characters. Same for firmware number and namespace numbe

svn commit: r338088 - head/usr.sbin/bhyve

2018-08-19 Thread Marcelo Araujo
Author: araujo Date: Mon Aug 20 04:50:11 2018 New Revision: 338088 URL: https://svnweb.freebsd.org/changeset/base/338088 Log: Users must set the number of queues from 1 to maximum 16 queues. Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/pci_nvme.c Modified: head/usr.sbin/bh

svn commit: r338087 - head/usr.sbin/bhyve

2018-08-19 Thread Marcelo Araujo
Author: araujo Date: Mon Aug 20 04:44:29 2018 New Revision: 338087 URL: https://svnweb.freebsd.org/changeset/base/338087 Log: Fix double mutex lock. Reported by: Coverity CID: 1394833 Discussed with: Leon Dang Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhy

Re: svn commit: r337887 - head/usr.sbin/bhyve

2018-08-16 Thread Marcelo Araujo
2018-08-17 7:33 GMT+08:00 Brooks Davis : > On Thu, Aug 16, 2018 at 05:23:26PM -0600, Warner Losh wrote: > > On Thu, Aug 16, 2018 at 5:16 PM, Brooks Davis > wrote: > > > > > On Fri, Aug 17, 2018 at 07:04:05AM +0800, Marcelo Araujo wrote: > > > > 201

Re: svn commit: r337887 - head/usr.sbin/bhyve

2018-08-16 Thread Marcelo Araujo
2018-08-17 3:29 GMT+08:00 Rodney W. Grimes : > > On Thu, Aug 16, 2018 at 11:06 AM, John-Mark Gurney > wrote: > > > > > Marcelo Araujo wrote this message on Thu, Aug 16, 2018 at 06:31 +: > > > > Author: araujo > > > > Date: Thu Aug 16 06:31:

svn commit: r337889 - head/usr.sbin/bhyve

2018-08-15 Thread Marcelo Araujo
Author: araujo Date: Thu Aug 16 06:38:01 2018 New Revision: 337889 URL: https://svnweb.freebsd.org/changeset/base/337889 Log: Fix a resource leak when using strdup(3) and also fix few style(9). Reported by: Coverity CID: 1394929 MFC after:1 week Sponsored by: iXsystems I

svn commit: r337888 - head/usr.sbin/bhyve

2018-08-15 Thread Marcelo Araujo
Author: araujo Date: Thu Aug 16 06:35:44 2018 New Revision: 337888 URL: https://svnweb.freebsd.org/changeset/base/337888 Log: Remove duplicated code. Reported by: Coverity CID: 1394893 MFC after:1 week Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyve/pci_nvm

svn commit: r337887 - head/usr.sbin/bhyve

2018-08-15 Thread Marcelo Araujo
Author: araujo Date: Thu Aug 16 06:31:54 2018 New Revision: 337887 URL: https://svnweb.freebsd.org/changeset/base/337887 Log: Add a comment explaining how the PSN works and why there is no need for a null terminator. Also mark CID 1394825 as intentional. Reported by: Coverity CID:

svn commit: r337886 - head/usr.sbin/bhyve

2018-08-15 Thread Marcelo Araujo
Author: araujo Date: Thu Aug 16 06:20:25 2018 New Revision: 337886 URL: https://svnweb.freebsd.org/changeset/base/337886 Log: Increase the mask from 15 to 255 or otherwise NVME_FEAT_SOFTWARE_PROGRESS will never be reached. Discussed with: Leon Dang and Darius Mihai MFC after:

svn commit: r337023 - in head: sys/amd64/vmm usr.sbin/jail

2018-07-31 Thread Marcelo Araujo
Author: araujo Date: Wed Aug 1 00:39:21 2018 New Revision: 337023 URL: https://svnweb.freebsd.org/changeset/base/337023 Log: - Add the ability to run bhyve(8) within a jail(8). This patch adds a new sysctl(8) knob "security.jail.vmm_allowed", by default this option is disable. Submi

svn commit: r336704 - stable/11/usr.sbin/bhyve

2018-07-24 Thread Marcelo Araujo
Author: araujo Date: Wed Jul 25 04:33:56 2018 New Revision: 336704 URL: https://svnweb.freebsd.org/changeset/base/336704 Log: MFC r336188: Improve bhyve exit(3) error code. The bhyve(8) exit status indicates how the VM was terminated: 0 rebooted 1 powered off 2 hal

svn commit: r336192 - in stable/11/usr.sbin: bhyvectl bhyveload

2018-07-11 Thread Marcelo Araujo
Author: araujo Date: Wed Jul 11 07:33:19 2018 New Revision: 336192 URL: https://svnweb.freebsd.org/changeset/base/336192 Log: MFC r335026: style(9) remove unnecessary blank tabs. Obtained from:TrueOS Sponsored by: iXsystems Inc. Modified: stable/11/usr.sbin/bhyvectl/bhyvec

svn commit: r336191 - stable/11/usr.sbin/bhyve

2018-07-11 Thread Marcelo Araujo
Author: araujo Date: Wed Jul 11 07:22:05 2018 New Revision: 336191 URL: https://svnweb.freebsd.org/changeset/base/336191 Log: MFC r335027, r335050 r335027: When this code was introduced at r300829 the author forgot to add the BSD license header that is the same as in its C header file.

svn commit: r336190 - in stable/11/sys/amd64/vmm: . amd intel io

2018-07-11 Thread Marcelo Araujo
Author: araujo Date: Wed Jul 11 07:19:42 2018 New Revision: 336190 URL: https://svnweb.freebsd.org/changeset/base/336190 Log: MFC r335030: Add SPDX tags to vmm(4). Sponsored by: iXsystems Inc. Modified: stable/11/sys/amd64/vmm/amd/npt.c stable/11/sys/amd64/vmm/amd/npt.h stable/1

svn commit: r336189 - stable/11/usr.sbin/bhyve

2018-07-11 Thread Marcelo Araujo
Author: araujo Date: Wed Jul 11 07:16:13 2018 New Revision: 336189 URL: https://svnweb.freebsd.org/changeset/base/336189 Log: MFC r335025: Add SPDX tags to bhyve(8). Discussed with: rgrimes, pfg and mav. Obtained from:TrueOS Sponsored by: iXsystems Inc. Modified: s

Re: svn commit: r336188 - head/usr.sbin/bhyve

2018-07-10 Thread Marcelo Araujo
a bare integer? > > Thanks, > > Ravi (rpokala@) > > -Original Message- > From: on behalf of Marcelo Araujo > > Date: 2018-07-10, Tuesday at 20:23 > To: , , < > svn-src-h...@freebsd.org> > Subject: svn commit: r336188 - head/usr.sbin/bhyve

svn commit: r336188 - head/usr.sbin/bhyve

2018-07-10 Thread Marcelo Araujo
Author: araujo Date: Wed Jul 11 03:23:09 2018 New Revision: 336188 URL: https://svnweb.freebsd.org/changeset/base/336188 Log: Improve bhyve exit(3) error code. The bhyve(8) exit status indicates how the VM was terminated: 0 rebooted 1 powered off 2 halted 3 triple

svn commit: r336162 - head/usr.sbin/bhyve

2018-07-09 Thread Marcelo Araujo
Author: araujo Date: Tue Jul 10 05:36:32 2018 New Revision: 336162 URL: https://svnweb.freebsd.org/changeset/base/336162 Log: Fix style(9) space and tab. Modified: head/usr.sbin/bhyve/pci_virtio_block.c Modified: head/usr.sbin/bhyve/pci_virtio_block.c

svn commit: r336161 - in stable/11: lib/libvmmapi usr.sbin/bhyve

2018-07-09 Thread Marcelo Araujo
Author: araujo Date: Tue Jul 10 04:26:32 2018 New Revision: 336161 URL: https://svnweb.freebsd.org/changeset/base/336161 Log: MFC r334307, r335103-r335104 r334307: Simplify macros EFPRINTF and EFFLUSH. [0] Also stdarg(3) says that each invocation of va_start() must be paired with a co

svn commit: r335974 - head/usr.sbin/bhyve

2018-07-04 Thread Marcelo Araujo
Author: araujo Date: Thu Jul 5 03:33:58 2018 New Revision: 335974 URL: https://svnweb.freebsd.org/changeset/base/335974 Log: - Add bhyve NVMe device emulation. The initial work on bhyve NVMe device emulation was done by the GSoC student Shunsuke Mie and was heavily modified in performan,

svn commit: r335688 - stable/11/usr.sbin/bhyve

2018-06-26 Thread Marcelo Araujo
Author: araujo Date: Wed Jun 27 03:58:02 2018 New Revision: 335688 URL: https://svnweb.freebsd.org/changeset/base/335688 Log: MFC r333622, r334019, r334084 r333622: vq_getchain() can return -1 if some descriptor(s) are invalid and prints a diagnostic message. So we do a sanity checking

svn commit: r335111 - svnadmin/conf

2018-06-13 Thread Marcelo Araujo
Author: araujo Date: Thu Jun 14 06:24:29 2018 New Revision: 335111 URL: https://svnweb.freebsd.org/changeset/base/335111 Log: Restore miwi's src commit bit. Welcome back Martin Wilke! Martin Wilke will be mentored by myself for a brief period. Approved by: core Modified: svnadmin/conf

svn commit: r335104 - head/usr.sbin/bhyve

2018-06-13 Thread Marcelo Araujo
Author: araujo Date: Thu Jun 14 01:34:53 2018 New Revision: 335104 URL: https://svnweb.freebsd.org/changeset/base/335104 Log: Fix style(9) space vs tab. Reviewed by: jhb MFC after:3 weeks. Sponsored by: iXsystems Inc. Differential Revision:https://reviews.freebsd.org/D157

svn commit: r335103 - head/lib/libvmmapi

2018-06-13 Thread Marcelo Araujo
Author: araujo Date: Thu Jun 14 01:28:55 2018 New Revision: 335103 URL: https://svnweb.freebsd.org/changeset/base/335103 Log: Fix style(9) space vs tab. Reviewed by: jhb MFC after:3 weeks. Sponsored by: iXsystems Inc. Differential Revision:https://reviews.freebsd.org/D157

svn commit: r335050 - head/usr.sbin/bhyve

2018-06-13 Thread Marcelo Araujo
Author: araujo Date: Wed Jun 13 11:49:34 2018 New Revision: 335050 URL: https://svnweb.freebsd.org/changeset/base/335050 Log: While I was investigating CID 1194192 related with a resource leak on mrp memory allocation, I could identify that actually we use this pointer on pci_emul.c as wel

svn commit: r335030 - in head/sys/amd64/vmm: . amd intel io

2018-06-13 Thread Marcelo Araujo
Author: araujo Date: Wed Jun 13 07:02:58 2018 New Revision: 335030 URL: https://svnweb.freebsd.org/changeset/base/335030 Log: Add SPDX tags to vmm(4). MFC after:4 weeks. Sponsored by: iXsystems Inc. Modified: head/sys/amd64/vmm/amd/amdvi_hw.c head/sys/amd64/vmm/amd/amdvi_priv.h

svn commit: r335027 - head/usr.sbin/bhyve

2018-06-12 Thread Marcelo Araujo
Author: araujo Date: Wed Jun 13 04:00:21 2018 New Revision: 335027 URL: https://svnweb.freebsd.org/changeset/base/335027 Log: When this code was introduced at r300829 the author forgot to add the BSD license header that is the same as in its C header file. MFC after:4 weeks. Sponsor

svn commit: r335026 - in head/usr.sbin: bhyvectl bhyveload

2018-06-12 Thread Marcelo Araujo
Author: araujo Date: Wed Jun 13 03:35:24 2018 New Revision: 335026 URL: https://svnweb.freebsd.org/changeset/base/335026 Log: style(9) remove unnecessary blank tabs. Obtained from:TrueOS MFC after:4 weeks. Sponsored by: iXsystems Inc. Modified: head/usr.sbin/bhyvectl/bhyv

svn commit: r335025 - head/usr.sbin/bhyve

2018-06-12 Thread Marcelo Araujo
Author: araujo Date: Wed Jun 13 03:22:08 2018 New Revision: 335025 URL: https://svnweb.freebsd.org/changeset/base/335025 Log: Add SPDX tags to bhyve(8). Discussed with: rgrimes, pfg and mav. Obtained from:TrueOS MFC after:4 weeks. Sponsored by: iXsystems Inc. Modifi

Re: svn commit: r334940 - head/usr.sbin/bhyve

2018-06-11 Thread Marcelo Araujo
2018-06-11 22:46 GMT+08:00 Pedro Giffuni : > > > On 06/10/18 21:41, Marcelo Araujo wrote: > > > > 2018-06-11 10:25 GMT+08:00 Pedro Giffuni : > >> >> >> On 10/06/2018 21:09, Marcelo Araujo wrote: >> >>> Author: araujo >>> Date

svn commit: r334951 - head/usr.sbin/bhyve

2018-06-11 Thread Marcelo Araujo
Author: araujo Date: Mon Jun 11 15:18:31 2018 New Revision: 334951 URL: https://svnweb.freebsd.org/changeset/base/334951 Log: More style(9) fixes, space vs tab. Modified: head/usr.sbin/bhyve/pci_virtio_block.c Modified: head/usr.sbin/bhyve/pci_virtio_block.c =

Re: svn commit: r334940 - head/usr.sbin/bhyve

2018-06-10 Thread Marcelo Araujo
2018-06-11 10:25 GMT+08:00 Pedro Giffuni : > > > On 10/06/2018 21:09, Marcelo Araujo wrote: > >> Author: araujo >> Date: Mon Jun 11 02:09:20 2018 >> New Revision: 334940 >> URL: https://svnweb.freebsd.org/changeset/base/334940 >> >> Log: >&

svn commit: r334940 - head/usr.sbin/bhyve

2018-06-10 Thread Marcelo Araujo
Mon Jun 11 02:09:20 2018 (r334940) @@ -0,0 +1,718 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (c) 2016 Jakub Klama . + * Copyright (c) 2018 Marcelo Araujo . + * All rights reserved. + * + * Redistribution and use in source and binary forms, with o

svn commit: r334307 - head/usr.sbin/bhyve

2018-05-28 Thread Marcelo Araujo
Author: araujo Date: Tue May 29 01:46:00 2018 New Revision: 334307 URL: https://svnweb.freebsd.org/changeset/base/334307 Log: Simplify macros EFPRINTF and EFFLUSH. [0] Also stdarg(3) says that each invocation of va_start() must be paired with a corresponding invocation of va_end() in the sam

svn commit: r334276 - head/lib/libc/string

2018-05-27 Thread Marcelo Araujo
Author: araujo Date: Mon May 28 06:01:02 2018 New Revision: 334276 URL: https://svnweb.freebsd.org/changeset/base/334276 Log: Remove unnecessary free(string) from EXAMPLES. Reported by: se Modified: head/lib/libc/string/strsep.3 Modified: head/lib/libc/string/strsep.3 =

svn commit: r334275 - head/lib/libc/string

2018-05-27 Thread Marcelo Araujo
Author: araujo Date: Mon May 28 05:01:42 2018 New Revision: 334275 URL: https://svnweb.freebsd.org/changeset/base/334275 Log: Update strsep(3) EXAMPLE section regards the usage of assert(3). As many people has pointed out, using assert(3) shall be not the best approach to verify if strdup

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
On Sat, May 26, 2018, 4:22 AM Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: > > On Sat, May 26, 2018, 4:09 AM Warner Losh wrote: > > > > > > > > > > > On Fri, May 25, 2018 at 2:02 PM, Ed Maste wrote: > > > &

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
On Sat, May 26, 2018, 4:09 AM Warner Losh wrote: > > > On Fri, May 25, 2018 at 2:02 PM, Ed Maste wrote: > >> On 25 May 2018 at 14:26, Marcelo Araujo wrote: >> > >> >> The fact that we don't do NDEBUG builds normally does not allow us to >> &g

Re: svn commit: r334216 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
Fixed at r334219. Thanks. 2018-05-26 3:08 GMT+08:00 Konstantin Belousov : > On Fri, May 25, 2018 at 06:54:40PM +0000, Marcelo Araujo wrote: > > Author: araujo > > Date: Fri May 25 18:54:40 2018 > > New Revision: 334216 > > URL: https://svnweb.freebsd.org/change

svn commit: r334219 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
Author: araujo Date: Fri May 25 19:12:30 2018 New Revision: 334219 URL: https://svnweb.freebsd.org/changeset/base/334219 Log: We don't need check if str is NULL as free(3) will handle NULL argument. Reported by: kib@ Modified: head/usr.sbin/bhyve/bhyverun.c Modified: head/usr.sbin/bh

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
2018-05-26 3:01 GMT+08:00 Shawn Webb : > On Sat, May 26, 2018 at 02:57:29AM +0800, Marcelo Araujo wrote: > > Thanks Shawn, > > > > I think there are plenty of places to fix this case! Thanks for the extra > > work :D. > > Any time. I'm glad to help. If you&#x

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
Thanks Shawn, I think there are plenty of places to fix this case! Thanks for the extra work :D. 2018-05-26 2:34 GMT+08:00 Shawn Webb : > On Sat, May 26, 2018 at 02:26:33AM +0800, Marcelo Araujo wrote: > > 2018-05-26 2:21 GMT+08:00 Brooks Davis : > > > > > On Sat, Ma

svn commit: r334216 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
Author: araujo Date: Fri May 25 18:54:40 2018 New Revision: 334216 URL: https://svnweb.freebsd.org/changeset/base/334216 Log: After a long discussion about assert(3), we gonna use a HardenedBSD approach to chek strdup(3) memory allocation. Submitted by: Shaw Webb Reported by: brooks

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
2018-05-26 2:21 GMT+08:00 Brooks Davis : > On Sat, May 26, 2018 at 01:56:28AM +0800, Marcelo Araujo wrote: > > 2018-05-26 1:44 GMT+08:00 Brooks Davis : > > > > > On Sat, May 26, 2018 at 01:21:33AM +0800, Marcelo Araujo wrote: > > > > On Sat, May 26

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
2018-05-26 2:21 GMT+08:00 Brooks Davis : > On Sat, May 26, 2018 at 01:56:28AM +0800, Marcelo Araujo wrote: > > 2018-05-26 1:44 GMT+08:00 Brooks Davis : > > > > > On Sat, May 26, 2018 at 01:21:33AM +0800, Marcelo Araujo wrote: > > > > On Sat, May 26

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
2018-05-26 1:44 GMT+08:00 Brooks Davis : > On Sat, May 26, 2018 at 01:21:33AM +0800, Marcelo Araujo wrote: > > On Sat, May 26, 2018, 1:11 AM Eitan Adler wrote: > > > > > On 25 May 2018 at 08:23, Marcelo Araujo > wrote: > > > > > > > > > >

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
On Sat, May 26, 2018, 1:11 AM Eitan Adler wrote: > On 25 May 2018 at 08:23, Marcelo Araujo wrote: > > > > > > On Fri, May 25, 2018, 11:11 PM Brooks Davis wrote: > >> > >> On Fri, May 25, 2018 at 02:07:05AM +, Marcelo Araujo wrote: > >> > A

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
On Fri, May 25, 2018, 11:11 PM Brooks Davis wrote: > On Fri, May 25, 2018 at 02:07:05AM +0000, Marcelo Araujo wrote: > > Author: araujo > > Date: Fri May 25 02:07:05 2018 > > New Revision: 334199 > > URL: https://svnweb.freebsd.org/changeset/base/334199 > > &g

Re: svn commit: r334199 - head/usr.sbin/bhyve

2018-05-25 Thread Marcelo Araujo
On Fri, May 25, 2018, 11:11 PM Brooks Davis wrote: > On Fri, May 25, 2018 at 02:07:05AM +0000, Marcelo Araujo wrote: > > Author: araujo > > Date: Fri May 25 02:07:05 2018 > > New Revision: 334199 > > URL: https://svnweb.freebsd.org/changeset/base/334199 > > &g

svn commit: r334199 - head/usr.sbin/bhyve

2018-05-24 Thread Marcelo Araujo
Author: araujo Date: Fri May 25 02:07:05 2018 New Revision: 334199 URL: https://svnweb.freebsd.org/changeset/base/334199 Log: Fix a memory leak on topology_parse(). strdup(3) allocates memory for a copy of the string, does the copy and returns a pointer to it. If there is no sufficient me

svn commit: r334084 - head/usr.sbin/bhyve

2018-05-23 Thread Marcelo Araujo
Author: araujo Date: Wed May 23 09:34:51 2018 New Revision: 334084 URL: https://svnweb.freebsd.org/changeset/base/334084 Log: pthread_rwlock_unlock(3) returns 0 if successful, otherwise an error number will be returned to indicate the error, so I'm applying an assert(3) to do a sanity check

svn commit: r334021 - head/usr.sbin/bhyve

2018-05-21 Thread Marcelo Araujo
Author: araujo Date: Tue May 22 06:02:11 2018 New Revision: 334021 URL: https://svnweb.freebsd.org/changeset/base/334021 Log: Revert: r334016 Revert for now this change, it in somehow breaks init_pci. Modified: head/usr.sbin/bhyve/pci_emul.c Modified: head/usr.sbin/bhyve/pci_emul.c ===

svn commit: r334019 - head/usr.sbin/bhyve

2018-05-21 Thread Marcelo Araujo
Author: araujo Date: Tue May 22 05:21:53 2018 New Revision: 334019 URL: https://svnweb.freebsd.org/changeset/base/334019 Log: Include atkbdc header where there are declared the prototype functions atkbdc_event and atkbdc_init. MFC after:4 weeks. Sponsored by: iXsystems Inc. Modifie

  1   2   3   4   5   >