History log of /freebsd-13.1/sys/dev/hyperv/vmbus/hyperv.c (Results 1 – 21 of 21)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0
# 200d4732 19-Nov-2021 Mark Johnston <[email protected]>

hyperv: Register the MSR-based timecounter during SI_SUB_HYPERVISOR

This reverts commit 9ef7df022a46 ("hyperv: Register hyperv_timecounter
later during boot") and adds a comment explaining why the t

hyperv: Register the MSR-based timecounter during SI_SUB_HYPERVISOR

This reverts commit 9ef7df022a46 ("hyperv: Register hyperv_timecounter
later during boot") and adds a comment explaining why the timecounter
needs to be registered as early as it is.

PR: 259878
Fixes: 9ef7df022a46 ("hyperv: Register hyperv_timecounter later during boot")
Reviewed by: kib
Sponsored by: The FreeBSD Foundation

(cherry picked from commit ed6a9452be01c1b7805d0a7311211b8cf381a9dd)

show more ...


# a2ca269b 25-Oct-2021 Mark Johnston <[email protected]>

hyperv: Register hyperv_timecounter later during boot

Previously the MSR-based timecounter was registered during
SI_SUB_HYPERVISOR, i.e., very early during boot, and before SI_SUB_LOCK.
After commit

hyperv: Register hyperv_timecounter later during boot

Previously the MSR-based timecounter was registered during
SI_SUB_HYPERVISOR, i.e., very early during boot, and before SI_SUB_LOCK.
After commit 621fd9dcb2d8 this triggers a panic since the timecounter
list lock is not yet initialized.

The hyperv timecounter does not need to be registered so early, so defer
that to SI_SUB_DRIVERS, at the same time the hyperv TSC timecounter is
registered.

Reported by: whu
Approved by: whu
Fixes: 621fd9dcb2d8 ("timecounter: Lock the timecounter list")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 9ef7df022a467776aa616b92fe5783e4261e84c6)

show more ...


Revision tags: release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0
# 49bfa624 25-Aug-2018 Alan Cox <[email protected]>

Eliminate the arena parameter to kmem_free(). Implicitly this corrects an
error in the function hypercall_memfree(), where the wrong arena was being
passed to kmem_free().

Introduce a per-page flag

Eliminate the arena parameter to kmem_free(). Implicitly this corrects an
error in the function hypercall_memfree(), where the wrong arena was being
passed to kmem_free().

Introduce a per-page flag, VPO_KMEM_EXEC, to mark physical pages that are
mapped in kmem with execute permissions. Use this flag to determine which
arena the kmem virtual addresses are returned to.

Eliminate UMA_SLAB_KRWX. The introduction of VPO_KMEM_EXEC makes it
redundant.

Update the nearby comment for UMA_SLAB_KERNEL.

Reviewed by: kib, markj
Discussed with: jeff
Approved by: re (marius)
Differential Revision: https://reviews.freebsd.org/D16845

show more ...


# 83a90bff 21-Aug-2018 Alan Cox <[email protected]>

Eliminate kmem_malloc()'s unused arena parameter. (The arena parameter
became unused in FreeBSD 12.x as a side-effect of the NUMA-related
changes.)

Reviewed by: kib, markj
Discussed with: jeff, re@

Eliminate kmem_malloc()'s unused arena parameter. (The arena parameter
became unused in FreeBSD 12.x as a side-effect of the NUMA-related
changes.)

Reviewed by: kib, markj
Discussed with: jeff, re@
Differential Revision: https://reviews.freebsd.org/D16825

show more ...


# 96f105d1 07-Jul-2018 Dexuan Cui <[email protected]>

hyperv: Fix boot-up after malloc() returns memory of NX by default now

FreeBSD VM can't boot up on Hyper-V after the recent malloc change in
r335068: Make UMA and malloc(9) return non-executable mem

hyperv: Fix boot-up after malloc() returns memory of NX by default now

FreeBSD VM can't boot up on Hyper-V after the recent malloc change in
r335068: Make UMA and malloc(9) return non-executable memory in most cases.

The hypercall page here must be executable.
Fix the boot-up issue by adding M_EXEC.

PR: 229167
Sponsored by: Microsoft

show more ...


Revision tags: release/11.2.0
# 5a7ed65f 30-Mar-2018 Ed Maste <[email protected]>

Correct comment typo in Hyper-V

PR: 226665
Submitted by: Ryo ONODERA
MFC after: 3 days


# 6bf331af 10-Oct-2017 Sepherosa Ziehau <[email protected]>

hyperv/vmbus: Expose Hyper-V major version.

MFC after: 3 days
Sponsored by: Microsoft


Revision tags: release/10.4.0
# 93b4e111 14-Aug-2017 Sepherosa Ziehau <[email protected]>

hyperv: Update copyright for the files changed in 2017

MFC after: 3 days
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D11982


Revision tags: release/11.1.0
# 9ba5e29c 19-Apr-2017 Sepherosa Ziehau <[email protected]>

hyperv: Use kmem_malloc for hypercall memory due to NX bit change.

Reported by: dexuan@
MFC after: now
Sponsored by: Microsoft


# 227bb849 09-Jan-2017 Sepherosa Ziehau <[email protected]>

hyperv: Add method to read 64bit Hyper-V specific time value.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D9057


Revision tags: release/11.0.1, release/11.0.0
# 5b444eda 29-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv/vmbus: Forward declare static functions

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7346


# 7d8ee480 28-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv/vmbus: Inclusion cleanup

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7334


# 7dd8881c 25-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv/vmbus: Rename hv_vmbus_priv.h to vmbus_brvar.h

It only contains bufring related bits for a while.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebs

hyperv/vmbus: Rename hv_vmbus_priv.h to vmbus_brvar.h

It only contains bufring related bits for a while.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7281

show more ...


# 71ac1309 14-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv: hv_guid -> struct hyperv_guid.

This paves way for the further cleanup/disentangle.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7092


# 562d480b 13-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv: Signal event input parameter is shared w/ MNF

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D7087


# fc7ddc1e 12-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv: Nuke unused stuffs

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6917


# e44bdd84 12-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv/vmbus: Busdma-fy Hypercall signal event input parameter.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6916


# 1f175550 12-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv: Nuke unused stuffs

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6913


# 236764b1 11-Jul-2016 Sepherosa Ziehau <[email protected]>

hyperv/vmbus: Implement a new set of APIs for post message Hypercall

And use this new APIs for Initial Contact post message Hypercall.
More post message Hypercalls will be converted.

MFC after: 1 w

hyperv/vmbus: Implement a new set of APIs for post message Hypercall

And use this new APIs for Initial Contact post message Hypercall.
More post message Hypercalls will be converted.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6830

show more ...


# d8bf5168 06-Jun-2016 Sepherosa Ziehau <[email protected]>

hyperv: Move machine dependent bits into machine dependent files.

MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D6701


# b7bb4816 01-Jun-2016 Sepherosa Ziehau <[email protected]>

hyperv: Rename some cleaned up/almost cleaned up files

MFC after: 1 week
Sponsored by: Microsoft OSTC