Page MenuHomeFreeBSD
Feed Advanced Search

Feb 20 2024

royger updated the diff for D43932: x86/xen: introduce a Xen early init function.

Check linear address and use %u to print an uint32_t

Feb 20 2024, 11:26 AM
royger added a comment to D43928: x86/xen: fix out of bounds access to the event channel masks on resume.

Depending on where xen_intr_disable_source() and xen_intr_disable_intr() were being called from, this is fixing both 1797ff962769 and some other commit. Certainly 1797ff962769 may have exposed this, but the is_valid_evtchn() call was needed earlier (could be rG76acc41fb7c7, or even before).

Feb 20 2024, 11:08 AM

Feb 19 2024

royger added inline comments to D43932: x86/xen: introduce a Xen early init function.
Feb 19 2024, 3:18 PM
royger added inline comments to D43932: x86/xen: introduce a Xen early init function.
Feb 19 2024, 2:44 PM
royger added inline comments to D43932: x86/xen: introduce a Xen early init function.
Feb 19 2024, 2:25 PM

Feb 16 2024

royger committed rGe7e2431586a4: x86/xen: fix migration when ACPI suspend is not available (authored by royger).
x86/xen: fix migration when ACPI suspend is not available
Feb 16 2024, 1:17 PM
royger closed D43765: x86/xen: fix migration when ACPI suspend is not available.
Feb 16 2024, 1:17 PM · x86
royger updated the diff for D43764: x86/xen: implement early init hook.

Context adjustments due to modifications in previous patches

Feb 16 2024, 12:44 PM · x86
royger requested review of D43935: x86/xen: replace xen_cpuid_base with hv_base.
Feb 16 2024, 12:42 PM
royger requested review of D43934: x86/xen: do video console fixup as part of early initialization.
Feb 16 2024, 12:38 PM
royger requested review of D43933: x86/xen: move shared page setup to early init handler.
Feb 16 2024, 12:27 PM
royger requested review of D43932: x86/xen: introduce a Xen early init function.
Feb 16 2024, 12:21 PM
royger requested review of D43931: x86/xen: remove parameter from fixup_console().
Feb 16 2024, 12:15 PM
royger requested review of D43930: x86/xen: fill hypercall page with int3.
Feb 16 2024, 12:15 PM
royger requested review of D43929: x86/xen: introduce non-hypercall based emergency print.
Feb 16 2024, 12:13 PM
royger requested review of D43928: x86/xen: fix out of bounds access to the event channel masks on resume.
Feb 16 2024, 12:11 PM
royger updated the diff for D43764: x86/xen: implement early init hook.

Fix comments.

Feb 16 2024, 12:04 PM · x86
royger updated the diff for D43765: x86/xen: fix migration when ACPI suspend is not available.

Add Xen guest assert.

Feb 16 2024, 11:57 AM · x86
royger added inline comments to D43765: x86/xen: fix migration when ACPI suspend is not available.
Feb 16 2024, 11:56 AM · x86

Feb 11 2024

royger added inline comments to D43764: x86/xen: implement early init hook.
Feb 11 2024, 3:54 PM · x86

Feb 6 2024

royger added inline comments to D43764: x86/xen: implement early init hook.
Feb 6 2024, 8:02 PM · x86
royger added inline comments to D43765: x86/xen: fix migration when ACPI suspend is not available.
Feb 6 2024, 5:22 PM · x86
royger updated the diff for D43765: x86/xen: fix migration when ACPI suspend is not available.

Add comment.

Feb 6 2024, 5:21 PM · x86
royger added inline comments to D43763: x86/cpu: introduce an optional hook for early.
Feb 6 2024, 4:17 PM · x86
royger updated the diff for D43764: x86/xen: implement early init hook.

Upload diff with context.

Feb 6 2024, 4:16 PM · x86
royger added a comment to D43764: x86/xen: implement early init hook.

Could you please upload diffs with context? i.e., add -U99999 or so to diff's parameters.

Hm, that's the output from git format-patch. I wonder why it doesn't pick the context automatically from the repo?

How are you uploading it? arc diff --create <revision> or git arc create will indeed fetch context automatically. If you're manually uploading diffs, then it won't. See https://wiki.freebsd.org/Phabricator#Create_a_Revision

Feb 6 2024, 4:16 PM · x86
royger updated the diff for D43763: x86/cpu: introduce an optional hook for early.

Fix possaible use of init_fn uninitialized.

Feb 6 2024, 4:13 PM · x86
royger added inline comments to D43763: x86/cpu: introduce an optional hook for early.
Feb 6 2024, 4:01 PM · x86
royger added a comment to D43764: x86/xen: implement early init hook.

Could you please upload diffs with context? i.e., add -U99999 or so to diff's parameters.

Feb 6 2024, 3:58 PM · x86
royger requested review of D43765: x86/xen: fix migration when ACPI suspend is not available.
Feb 6 2024, 8:43 AM · x86
royger updated the summary of D43764: x86/xen: implement early init hook.
Feb 6 2024, 8:42 AM · x86
royger requested review of D43764: x86/xen: implement early init hook.
Feb 6 2024, 8:42 AM · x86
royger requested review of D43763: x86/cpu: introduce an optional hook for early.
Feb 6 2024, 8:39 AM · x86
royger updated the diff for D43508: x86/cpu: improve hypervisor detection.

Fix detection

Feb 6 2024, 8:37 AM

Jan 23 2024

royger added a comment to D43508: x86/cpu: improve hypervisor detection.
In D43508#993354, @jhb wrote:

Oof, ok. I guess for now this approach is fine of treating "HV" as a secondary signature (i.e. one other hypervisors will emulate). I do think we do probably want to eventually transition to more of a "hypervisor_present()" sort of thing I described which can either be a bitmap or something else and remove direct checks of vm_guest. One instance of s/HperV/HyperV/ in the commit log btw. (I really wish code review tools permitted per-line comments on commit logs, not just the diff.)

Jan 23 2024, 4:17 PM
royger added a comment to D43508: x86/cpu: improve hypervisor detection.
In D43508#992957, @jhb wrote:

I think what we want instead is for vm_guest to be the "main" hypervisor for the first leaf, but have a way that drivers can ask "is hypervisor X present" when checking for X-specific extensions or PV devices, etc. That is, if you are running under Xen but with support for some Hyper-V PV devices, I think vm_guest should still be XEN, but we want the PV device drivers to be calling some bool hypervisor_present(enum) instead, so that instead of doing if (vm_guest == VM_GUEST_HV) the drivers call if (hypervisor_present(VM_GUEST_HV)).

Jan 23 2024, 8:48 AM

Jan 19 2024

royger added inline comments to D43508: x86/cpu: improve hypervisor detection.
Jan 19 2024, 3:11 PM
royger requested review of D43508: x86/cpu: improve hypervisor detection.
Jan 19 2024, 9:32 AM

Jan 16 2024

royger committed rGb0165dc4539f: x86/xen: fix HVM guest hypercall page setup (authored by royger).
x86/xen: fix HVM guest hypercall page setup
Jan 16 2024, 5:52 PM

Jan 12 2024

royger closed D43373: xen: improve man (4) page.
Jan 12 2024, 9:20 AM
royger committed rG82126ef92fdb: xen: improve man (4) page (authored by royger).
xen: improve man (4) page
Jan 12 2024, 9:20 AM

Jan 9 2024

royger updated the diff for D43373: xen: improve man (4) page.

Add line break after full stop.

Jan 9 2024, 9:47 AM
royger requested review of D43373: xen: improve man (4) page.
Jan 9 2024, 9:29 AM

Dec 21 2023

royger accepted D43145: gntdev: Handle errors from suword32() in gntdev_alloc_gref().
Dec 21 2023, 12:28 PM

Dec 19 2023

royger committed R11:0ad4440c976c: emulators/xen-kernel,sysutils/xen-tools: update to 4.18.0 (authored by royger).
emulators/xen-kernel,sysutils/xen-tools: update to 4.18.0
Dec 19 2023, 11:19 AM

Dec 15 2023

royger committed rG4c9e6ad3205a: xen: add atomic #defines to accomodate differing xen_ulong_t sizes (authored by ehem_freebsd_m5p.com).
xen: add atomic #defines to accomodate differing xen_ulong_t sizes
Dec 15 2023, 2:02 PM
royger committed rGed917e0faea8: xen/intr: correct type of evtchn_enabled (authored by ehem_freebsd_m5p.com).
xen/intr: correct type of evtchn_enabled
Dec 15 2023, 2:02 PM
royger committed rGea9a9b122d94: sys/conf: make xen_acpi_cpu.c depend on acpi (authored by ehem_freebsd_m5p.com).
sys/conf: make xen_acpi_cpu.c depend on acpi
Dec 15 2023, 2:02 PM
royger closed D32796: xen: add SPDX license tags to Xen headers.
Dec 15 2023, 2:01 PM
royger committed rG40e1d9d45f0f: xen: add SPDX license tags to Xen headers (authored by ehem_freebsd_m5p.com).
xen: add SPDX license tags to Xen headers
Dec 15 2023, 2:01 PM

Dec 11 2023

royger added a comment to D42797: LinuxKPI: Add xen/xen.h header.

While the hypercall headers where originally imported from Linux, I think there's very little chance we will even sync again with Linuxes version, so s/__must_check/__result_use_check/ in the Xen hypercall headers would be the best solution IMO. Playing games with ifdef/ifndef is usually not a good idea.

Dec 11 2023, 10:10 AM

Nov 28 2023

royger committed rGc7368ccb6801: xen: remove xen_domain_type enum/variable (authored by ehem_freebsd_m5p.com).
xen: remove xen_domain_type enum/variable
Nov 28 2023, 1:40 PM
royger committed rGd48760ffe9ea: xen/dev: remove __unused from driver argument of identify functions (authored by ehem_freebsd_m5p.com).
xen/dev: remove __unused from driver argument of identify functions
Nov 28 2023, 1:40 PM
royger committed rG3e5e0e2f1678: xen/dev: switch to DEVMETHOD_END (authored by ehem_freebsd_m5p.com).
xen/dev: switch to DEVMETHOD_END
Nov 28 2023, 1:40 PM
royger committed rGc5c26f15f868: xen/x86: move x86-only variable out of common (authored by ehem_freebsd_m5p.com).
xen/x86: move x86-only variable out of common
Nov 28 2023, 1:40 PM
royger committed rG1b43b74963dd: xen/intr: remove xenpci headers (authored by ehem_freebsd_m5p.com).
xen/intr: remove xenpci headers
Nov 28 2023, 1:40 PM
royger committed rGb37a180f0191: xen: remove declaration of evtchn_device_upcall() (authored by ehem_freebsd_m5p.com).
xen: remove declaration of evtchn_device_upcall()
Nov 28 2023, 1:40 PM
royger committed rG54a0b7203c30: xen/apic: remove passing trapframe as argument (authored by ehem_freebsd_m5p.com).
xen/apic: remove passing trapframe as argument
Nov 28 2023, 1:40 PM
royger committed rGc880f12f5ac6: xen/intr: correct misuses of Xen handle pointer type (authored by ehem_freebsd_m5p.com).
xen/intr: correct misuses of Xen handle pointer type
Nov 28 2023, 1:40 PM
royger closed D29913: xen/intr: move x86-only variable out of common.
Nov 28 2023, 1:39 PM
royger closed D32923: xen/intr: remove xenpci headers.
Nov 28 2023, 1:39 PM
royger closed D30865: xen: remove declaration of evtchn_device_upcall().
Nov 28 2023, 1:39 PM
royger committed rGb3195ed2a31f: xen: correct spacing in hypercall.h headers (authored by ehem_freebsd_m5p.com).
xen: correct spacing in hypercall.h headers
Nov 28 2023, 1:39 PM

Nov 7 2023

royger accepted D42343: xen: improve shutdown hook.

Change LGTM, thanks :).

Nov 7 2023, 8:40 AM
royger added a comment to D42343: xen: improve shutdown hook.

My opinion is that halt should behave equally on bare metal than when virtualized, otherwise it's just going to confuse users. If we believe that halt should behave differently (iow: do power off) it should be changed uniformly.

First, my current opinion is FreeBSD on Xen as Domain 0, should behave similarly to FreeBSD on bare metal.

Second, my current opinion is spinning in a halt-loop is a poor fit for FreeBSD on Xen as a user Domain. The reason is the domain ends up sitting there doing nothing useful.

Nov 7 2023, 8:39 AM

Nov 6 2023

royger committed rG318bbb6d5a1e: xen-netfront: attempt to make cleanup idempotent (authored by royger).
xen-netfront: attempt to make cleanup idempotent
Nov 6 2023, 10:18 AM
royger committed rG1a12f0aea81b: xen: fix initialization of grant table frame array (authored by royger).
xen: fix initialization of grant table frame array
Nov 6 2023, 10:18 AM
royger added inline comments to D42343: xen: improve shutdown hook.
Nov 6 2023, 8:52 AM
royger added a comment to D42343: xen: improve shutdown hook.

My opinion is that halt should behave equally on bare metal than when virtualized, otherwise it's just going to confuse users. If we believe that halt should behave differently (iow: do power off) it should be changed uniformly.

Nov 6 2023, 8:47 AM

Nov 2 2023

royger added a comment to D42343: xen: improve shutdown hook.

There's also SHUTDOWN_crash which should likely be used if the kernel panicked, likely by checking KERNEL_PANICKED()?

Nov 2 2023, 4:40 PM

Oct 16 2023

royger committed R11:8b5aa5e08158: {emulators,sysutils}/xen-{kernel,tools}: update to 4.17.2 (authored by royger).
{emulators,sysutils}/xen-{kernel,tools}: update to 4.17.2
Oct 16 2023, 1:23 PM

Oct 3 2023

royger accepted D41439: netfront: fix the support for disabling LRO at boot time.

Are you fine with committing it yourself? Might be worth requesting for backport to the releng 14.0 branch, as it's a low risk fix IMO.

Oct 3 2023, 10:44 AM

Aug 22 2023

royger added a comment to D41439: netfront: fix the support for disabling LRO at boot time.

Would it be simpler to not set IFCAP_LRO in the if_setcapenable() call on create_netdev() if xn_enable_lro is false? I think that way we would avoid exposing feature-gso-tcpv4 on xenstore and you won't need to modify talk_to_backend().

Aug 22 2023, 10:16 AM

Aug 15 2023

royger added a comment to D41439: netfront: fix the support for disabling LRO at boot time.

I will look in more detail on Monday when I'm back from PTO, but overall I agree it should be fixed. I will also look into possible solutions to detect when forwarding is enabled and disable LRO automatically.

Aug 15 2023, 5:47 PM

Jul 21 2023

royger committed rG20fc5bf7df1d: xen: move vcpu_info to common, leave hook for setup (authored by ehem_freebsd_m5p.com).
xen: move vcpu_info to common, leave hook for setup
Jul 21 2023, 9:00 AM

Jun 28 2023

royger committed R11:8d3618a14d48: sys-utils/xen-tools: remove usage of signed bitfields (authored by royger).
sys-utils/xen-tools: remove usage of signed bitfields
Jun 28 2023, 1:57 PM

Apr 14 2023

royger committed rG6d765bff6f73: xen: move common variables off of sys/x86/xen/hvm.c (authored by ehem_freebsd_m5p.com).
xen: move common variables off of sys/x86/xen/hvm.c
Apr 14 2023, 2:03 PM
royger committed rG5e2183dab871: xen/intr: move sys/x86/xen/xen_intr.c to sys/dev/xen/bus/ (authored by julien_xen.org).
xen/intr: move sys/x86/xen/xen_intr.c to sys/dev/xen/bus/
Apr 14 2023, 2:03 PM
royger committed rG2d795ab1eaa7: xen/intr: move x86 PIC interface to xen_arch_intr.c, introduce wrappers (authored by julien_xen.org).
xen/intr: move x86 PIC interface to xen_arch_intr.c, introduce wrappers
Apr 14 2023, 2:03 PM
royger committed rG6699c22c1cb0: xen/intr: move interrupt allocation/release to architecture (authored by ehem_freebsd_m5p.com).
xen/intr: move interrupt allocation/release to architecture
Apr 14 2023, 2:03 PM
royger committed rG373301019f16: xen/intr: remove type argument from xen_intr_alloc_isrc() (authored by ehem_freebsd_m5p.com).
xen/intr: remove type argument from xen_intr_alloc_isrc()
Apr 14 2023, 2:03 PM
royger committed rGd0a69069bb22: xen/x86: rework isrc allocation to use list instead of table scanning (authored by ehem_freebsd_m5p.com).
xen/x86: rework isrc allocation to use list instead of table scanning
Apr 14 2023, 2:03 PM
royger committed rGab7ce14b1d9d: xen/intr: introduce dev/xen/bus/intr-internal.h (authored by julien_xen.org).
xen/intr: introduce dev/xen/bus/intr-internal.h
Apr 14 2023, 2:03 PM
royger committed rGd32d65276b20: xen/intr: move evtchn_type to intr-internal.h (authored by ehem_freebsd_m5p.com).
xen/intr: move evtchn_type to intr-internal.h
Apr 14 2023, 2:03 PM
royger committed rGaf610cabf1f4: xen/intr: adjust xen_intr_handle_upcall() to match driver filter (authored by ehem_freebsd_m5p.com).
xen/intr: adjust xen_intr_handle_upcall() to match driver filter
Apr 14 2023, 2:03 PM
royger committed rG2794893ebff0: xen/intr: do full xenisrc initialization during binding (authored by ehem_freebsd_m5p.com).
xen/intr: do full xenisrc initialization during binding
Apr 14 2023, 2:03 PM
royger committed rGff73b1d69b90: xen/intr: split xen_intr_isrc_lock uses (authored by ehem_freebsd_m5p.com).
xen/intr: split xen_intr_isrc_lock uses
Apr 14 2023, 2:03 PM
royger committed rG834013dea2d2: xen/intr: rework xen_intr_alloc_isrc() locking (authored by ehem_freebsd_m5p.com).
xen/intr: rework xen_intr_alloc_isrc() locking
Apr 14 2023, 2:03 PM
royger committed rG09bd542d17c9: xen/intr: rework xen_intr_alloc_isrc() call structure (authored by ehem_freebsd_m5p.com).
xen/intr: rework xen_intr_alloc_isrc() call structure
Apr 14 2023, 2:03 PM
royger closed D28982: xen: move common variables and code off of sys/x86/xen/hvm.c.
Apr 14 2023, 2:03 PM
royger closed D30236: xen/intr: move sys/x86/xen/xen_intr.c to sys/xen/xen_intr.c.
Apr 14 2023, 2:02 PM
royger closed D30909: xen/intr: introduce xen_arch_intr.c.
Apr 14 2023, 2:02 PM
royger closed D30936: xen/intr: move interrupt allocation/release to architecture.
Apr 14 2023, 2:02 PM
royger closed D31188: xen/intr: move isrc allocation out of xen_intr_bind_isrc().
Apr 14 2023, 2:02 PM
royger closed D30006: xen/intr: adjust xen_intr_handle_upcall() to match interrupt filter.
Apr 14 2023, 2:02 PM
royger committed rG149c58101811: xen/intr: adjust xenisrc types, adjust format strings to match (authored by ehem_freebsd_m5p.com).
xen/intr: adjust xenisrc types, adjust format strings to match
Apr 14 2023, 2:02 PM
royger closed D30648: xen/intr: move x86 bits into xen_arch_isrc_t structure.
Apr 14 2023, 2:02 PM
royger committed rGecdcad6516c9: xen: remove CONFIG_XEN_COMPAT, purge Xen 3.0 compatibility (authored by ehem_freebsd_m5p.com).
xen: remove CONFIG_XEN_COMPAT, purge Xen 3.0 compatibility
Apr 14 2023, 2:02 PM
royger committed rG61ccede8cf6c: xen: purge no longer used hypervisor functions (authored by ehem_freebsd_m5p.com).
xen: purge no longer used hypervisor functions
Apr 14 2023, 2:02 PM
royger closed D30726: xen/intr: rework locking, prepare xen_intr_alloc_isrc() for split.
Apr 14 2023, 2:02 PM