History log of /openbsd-current/usr.sbin/ldomd/ds.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.12 27-Jul-2022 kn

Print poll(2) errno

Distinguish between return values -1 (errno set) and 0.

OK kettenis


Revision tags: OPENBSD_7_1_BASE
# 1.11 24-Oct-2021 deraadt

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.10 28-Nov-2019 kn

Use scan_scaled(3) for memory in ldom.conf

Replace the hand-written routing with a proper library allowing even more
formats.

Since ldomctl's local util.h conflicts with the now used global util.h from
libutil, rename it to ldom_util.h.

Manual wording from amd64's vm.conf(5).

OK kettenis


# 1.9 20-Oct-2019 kettenis

Print LDC protocol version in debug message.


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.8 13-Jul-2018 kettenis

When we nack a domain service because we don't support the requested major
version, provide a major version that we do support.


# 1.7 13-Jul-2018 kettenis

Check protocol version number before sending an ack indicating that we
support a domain services protocol.


# 1.6 09-Jul-2018 kettenis

Nack LDC protocol versions that we don't support. Avoids a hang on SPARC T3
systems (and possible newer systems as well).


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.5 15-Oct-2014 deraadt

create xreallocarray() and use it


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.4 19-Feb-2013 stsp

When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency.
tweaks and ok kettenis@


# 1.3 04-Nov-2012 kettenis

Consume ACKs when doing large sends.


# 1.2 04-Nov-2012 kettenis

Call service start function if a particular domain service has been
successfully registered. Export ds_conn_handle().


# 1.1 27-Oct-2012 kettenis

Give ldomd(8) its own copy of the domain services support code and modify it
to handle multiple channels. Use it to provide the var-config domain service
to all the currently configured guest domains.


# 1.11 24-Oct-2021 deraadt

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.10 28-Nov-2019 kn

Use scan_scaled(3) for memory in ldom.conf

Replace the hand-written routing with a proper library allowing even more
formats.

Since ldomctl's local util.h conflicts with the now used global util.h from
libutil, rename it to ldom_util.h.

Manual wording from amd64's vm.conf(5).

OK kettenis


# 1.9 20-Oct-2019 kettenis

Print LDC protocol version in debug message.


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.8 13-Jul-2018 kettenis

When we nack a domain service because we don't support the requested major
version, provide a major version that we do support.


# 1.7 13-Jul-2018 kettenis

Check protocol version number before sending an ack indicating that we
support a domain services protocol.


# 1.6 09-Jul-2018 kettenis

Nack LDC protocol versions that we don't support. Avoids a hang on SPARC T3
systems (and possible newer systems as well).


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.5 15-Oct-2014 deraadt

create xreallocarray() and use it


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.4 19-Feb-2013 stsp

When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency.
tweaks and ok kettenis@


# 1.3 04-Nov-2012 kettenis

Consume ACKs when doing large sends.


# 1.2 04-Nov-2012 kettenis

Call service start function if a particular domain service has been
successfully registered. Export ds_conn_handle().


# 1.1 27-Oct-2012 kettenis

Give ldomd(8) its own copy of the domain services support code and modify it
to handle multiple channels. Use it to provide the var-config domain service
to all the currently configured guest domains.


# 1.10 28-Nov-2019 kn

Use scan_scaled(3) for memory in ldom.conf

Replace the hand-written routing with a proper library allowing even more
formats.

Since ldomctl's local util.h conflicts with the now used global util.h from
libutil, rename it to ldom_util.h.

Manual wording from amd64's vm.conf(5).

OK kettenis


# 1.9 20-Oct-2019 kettenis

Print LDC protocol version in debug message.


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.8 13-Jul-2018 kettenis

When we nack a domain service because we don't support the requested major
version, provide a major version that we do support.


# 1.7 13-Jul-2018 kettenis

Check protocol version number before sending an ack indicating that we
support a domain services protocol.


# 1.6 09-Jul-2018 kettenis

Nack LDC protocol versions that we don't support. Avoids a hang on SPARC T3
systems (and possible newer systems as well).


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.5 15-Oct-2014 deraadt

create xreallocarray() and use it


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.4 19-Feb-2013 stsp

When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency.
tweaks and ok kettenis@


# 1.3 04-Nov-2012 kettenis

Consume ACKs when doing large sends.


# 1.2 04-Nov-2012 kettenis

Call service start function if a particular domain service has been
successfully registered. Export ds_conn_handle().


# 1.1 27-Oct-2012 kettenis

Give ldomd(8) its own copy of the domain services support code and modify it
to handle multiple channels. Use it to provide the var-config domain service
to all the currently configured guest domains.


# 1.9 20-Oct-2019 kettenis

Print LDC protocol version in debug message.


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.8 13-Jul-2018 kettenis

When we nack a domain service because we don't support the requested major
version, provide a major version that we do support.


# 1.7 13-Jul-2018 kettenis

Check protocol version number before sending an ack indicating that we
support a domain services protocol.


# 1.6 09-Jul-2018 kettenis

Nack LDC protocol versions that we don't support. Avoids a hang on SPARC T3
systems (and possible newer systems as well).


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.5 15-Oct-2014 deraadt

create xreallocarray() and use it


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.4 19-Feb-2013 stsp

When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency.
tweaks and ok kettenis@


# 1.3 04-Nov-2012 kettenis

Consume ACKs when doing large sends.


# 1.2 04-Nov-2012 kettenis

Call service start function if a particular domain service has been
successfully registered. Export ds_conn_handle().


# 1.1 27-Oct-2012 kettenis

Give ldomd(8) its own copy of the domain services support code and modify it
to handle multiple channels. Use it to provide the var-config domain service
to all the currently configured guest domains.


# 1.8 13-Jul-2018 kettenis

When we nack a domain service because we don't support the requested major
version, provide a major version that we do support.


# 1.7 13-Jul-2018 kettenis

Check protocol version number before sending an ack indicating that we
support a domain services protocol.


# 1.6 09-Jul-2018 kettenis

Nack LDC protocol versions that we don't support. Avoids a hang on SPARC T3
systems (and possible newer systems as well).


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.5 15-Oct-2014 deraadt

create xreallocarray() and use it


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.4 19-Feb-2013 stsp

When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency.
tweaks and ok kettenis@


# 1.3 04-Nov-2012 kettenis

Consume ACKs when doing large sends.


# 1.2 04-Nov-2012 kettenis

Call service start function if a particular domain service has been
successfully registered. Export ds_conn_handle().


# 1.1 27-Oct-2012 kettenis

Give ldomd(8) its own copy of the domain services support code and modify it
to handle multiple channels. Use it to provide the var-config domain service
to all the currently configured guest domains.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.5 15-Oct-2014 deraadt

create xreallocarray() and use it


Revision tags: OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.4 19-Feb-2013 stsp

When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency.
tweaks and ok kettenis@


# 1.3 04-Nov-2012 kettenis

Consume ACKs when doing large sends.


# 1.2 04-Nov-2012 kettenis

Call service start function if a particular domain service has been
successfully registered. Export ds_conn_handle().


# 1.1 27-Oct-2012 kettenis

Give ldomd(8) its own copy of the domain services support code and modify it
to handle multiple channels. Use it to provide the var-config domain service
to all the currently configured guest domains.