NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/58195: vmt(4) driver conflicts with open-vm-tools
The following reply was made to PR kern/58195; it has been noted by GNATS.
From: PHO <pho%cielonegro.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/58195: vmt(4) driver conflicts with open-vm-tools
Date: Thu, 25 Apr 2024 22:36:31 +0900
This is a multi-part message in MIME format.
--------------KvxgWL6YBL5ErUQKnRRuFFky
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Here's the patch. I will commit this if nobody objects within a
reasonable time period.
--------------KvxgWL6YBL5ErUQKnRRuFFky
Content-Type: text/x-patch; charset=UTF-8;
name="0002-kern-58195-Add-a-sysctl-variable-to-turn-off-vmt-4.patch"
Content-Disposition: attachment;
filename*0="0002-kern-58195-Add-a-sysctl-variable-to-turn-off-vmt-4.patc";
filename*1="h"
Content-Transfer-Encoding: base64
RnJvbSBjNzFjZTU2YjgwYjY0NmRmMDIwYmZmMDRlMzQ3NzliYWI3ZmI0ZTZjIE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQSE8gPHBob0BjaWVsb25lZ3JvLm9yZz4KRGF0ZTog
VGh1LCAyNSBBcHIgMjAyNCAwMDozMDo0NyArMDkwMApTdWJqZWN0OiBbUEFUQ0ggMi8yXSBr
ZXJuLzU4MTk1OiBBZGQgYSBzeXNjdGwgdmFyaWFibGUgdG8gdHVybiBvZmYgdm10KDQpCgpU
aGUgdm10KDQpIGRyaXZlciBjYXVzZXMgYSBjb25mbGljdCB3aXRoIHZtdG9vbHNkKDgpIGZy
b20Kc3lzdXRpbHMvb3Blbi12bS10b29scy4gVGhlIGRyaXZlciB3b3JrcyBieSBlc3RhYmxp
c2hpbmcgYW4gUlBDIGNoYW5uZWwKY2FsbGVkIFRDTE8gYmV0d2VlbiBWTXdhcmUgZ3Vlc3Qg
YW5kIGhvc3QgdG8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