]> xenbits.xensource.com Git - xen-guest-agent.git/log
xen-guest-agent.git
17 months agopnet: keep a note on InterfaceInfo::name
Yann Dirson [Thu, 23 Nov 2023 17:27:41 +0000 (18:27 +0100)]
pnet: keep a note on InterfaceInfo::name

Storage of interface name in pnet::InterfaceInfo would seem redundant
now, but we still need it stored temporarily, and this still looks
like the best place to do so.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agonet: keep a cache of network interfaces
Yann Dirson [Thu, 30 Nov 2023 16:45:00 +0000 (17:45 +0100)]
net: keep a cache of network interfaces

Collects in a central place a map of iface indices, their names, and their
toolstack interface if any.

Finally replaces add_vif_info() calls with get_toolstack_interface()
called once to populate the cache.

Finally the RmIp events can be applied when an interface disappears, which
essentially fixes #13.

Though this makes a new problem apparent: recreating the VIF sometimes
does not get caught on Linux, when the iface is created as eth0 and
then renamed by udev as enX0 in a subsequent Newlink message: since we
are now only attempting to identify the toolkit-interface once, if
when we try to access the /sys node for eth0 the renaming already
occured the toolkit-interface is frozen as None.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agonetlink: refactor private funcs as methods
Yann Dirson [Thu, 30 Nov 2023 16:42:26 +0000 (17:42 +0100)]
netlink: refactor private funcs as methods

While there is no use for `self` today in there, we're going to need to
refer to an iface_cache in next commits, which gets much simplified if we
never have to borrow across method boundaries.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agopnet: reword network_view as current_addresses
Yann Dirson [Thu, 23 Nov 2023 10:52:07 +0000 (11:52 +0100)]
pnet: reword network_view as current_addresses

Makes wording consistent with addresses_cache, easier reading.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agopnet: reword cache as addresses_cache
Yann Dirson [Thu, 23 Nov 2023 10:39:05 +0000 (11:39 +0100)]
pnet: reword cache as addresses_cache

We're going to have an interface cache too, let's be clear.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agopnet: reword NetworkView as AddressesState
Yann Dirson [Thu, 23 Nov 2023 10:36:20 +0000 (11:36 +0100)]
pnet: reword NetworkView as AddressesState

Prepares renaming of "cache" member.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agonet: rework toolstack-interface detection
Yann Dirson [Wed, 22 Nov 2023 11:42:27 +0000 (12:42 +0100)]
net: rework toolstack-interface detection

Detection of toolstack-interface (and not only VIF) does not have to
be done on every NetEvent, but only once.  To prepare for this,
introduce a new functional API that can be used instead of mutating a
NetEvent - this does not change call sites, which still make use of
the legacy API.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agonetlink: use name from NLA in Link events
Yann Dirson [Mon, 20 Nov 2023 14:29:47 +0000 (15:29 +0100)]
netlink: use name from NLA in Link events

We were always calling `if_indextoname()` to get the interface name when
receiving a New/DelLink message.  Just use the data we already received
instead.

On NewLink messages we just received the interface name, so we don't need
to make another query to get the information; on DelLink the sycall cannot
even give us this information any more.

Note at this point we still use "" to denote the lack of a name - it
seems unlikely to happen there anyway, and will be made cleaner next.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoxenstore_schema_rfc: propose using iface number as key
Yann Dirson [Tue, 21 Nov 2023 09:40:51 +0000 (10:40 +0100)]
xenstore_schema_rfc: propose using iface number as key

This is more stable than names, and requires less bookkeeping in the
agent.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoxenstore_schema_std: index the iface address cache with OS index
Yann Dirson [Tue, 21 Nov 2023 09:11:29 +0000 (10:11 +0100)]
xenstore_schema_std: index the iface address cache with OS index

Iface name is not always part of a Netlink message, as opposed to the
OS index of the interface, and looking up the name following reception of
an interface removal notification just does not work.

All supported and prospective platforms seem to have a concept of
interface OS index, so this should cause no problem and be more efficient.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agopnet: index NetworkView by interface index, not name
Yann Dirson [Mon, 20 Nov 2023 15:26:13 +0000 (16:26 +0100)]
pnet: index NetworkView by interface index, not name

Current structure made us fill NetInterface with a dummy interface
number, and we want to use interface number in xenstore_schema_std to
fix #13.

Iface name becomes part of the associated data, bundle it into
InterfaceInfo for now (it will get redundant with introduction of a more
global interface cache).

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agopnet: use a NetworkView type alias to reduce redundancy
Yann Dirson [Mon, 20 Nov 2023 14:52:07 +0000 (15:52 +0100)]
pnet: use a NetworkView type alias to reduce redundancy

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Tue, 5 Dec 2023 14:15:22 +0000 (14:15 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!34

17 months agoCargo.lock: update outdated deps
Yann Dirson [Tue, 5 Dec 2023 13:54:47 +0000 (14:54 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'ci-everycommit-catch-failures' into 'main'
Yann Dirson [Fri, 1 Dec 2023 11:34:20 +0000 (11:34 +0000)]
Merge branch 'ci-everycommit-catch-failures' into 'main'

ci: fix everycommit regression

See merge request xen-project/xen-guest-agent!29

17 months agoci: make sure collapsed-section footer is always printed
Yann Dirson [Fri, 1 Dec 2023 09:57:38 +0000 (10:57 +0100)]
ci: make sure collapsed-section footer is always printed

In case of error the lack of footer would fool gitlab log display into
thinking error summary from git-rebase was part of the collapsible section,
which is confusing to the reader.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: fix handling of build errors
Yann Dirson [Fri, 1 Dec 2023 09:33:46 +0000 (10:33 +0100)]
ci: fix handling of build errors

When using the "! command" shell syntax, $? returns the status of the
negated command, so the script was reporting success in all cases.

Just avoid using that syntax.

#TestsNeedTesting

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: use stderr not stdout in build wrapper
Yann Dirson [Fri, 24 Nov 2023 11:03:04 +0000 (12:03 +0100)]
ci: use stderr not stdout in build wrapper

The "Executing ..." lines from gitlab-ci occasionally got captured before
the footer of previous collapsed section, so hidden when said section is
collapsed.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'general-improvements-from-mr23' into 'main'
Yann Dirson [Thu, 30 Nov 2023 11:21:40 +0000 (11:21 +0000)]
Merge branch 'general-improvements-from-mr23' into 'main'

General improvements from !23

See merge request xen-project/xen-guest-agent!28

17 months agopnet: use or_insert_with to avoid useless allocations in nominal path
Yann Dirson [Thu, 23 Nov 2023 15:00:24 +0000 (16:00 +0100)]
pnet: use or_insert_with to avoid useless allocations in nominal path

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoxenstore_schema_std: refuse publish_netevent calls with no toolstack iface
Yann Dirson [Thu, 23 Nov 2023 10:18:54 +0000 (11:18 +0100)]
xenstore_schema_std: refuse publish_netevent calls with no toolstack iface

This is already filtered at a more general level, in main.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoxenstore_schema_std: more idiomatic String to &str conversion
Yann Dirson [Thu, 23 Nov 2023 17:04:09 +0000 (18:04 +0100)]
xenstore_schema_std: more idiomatic String to &str conversion

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agopublisher: let compiler tell us of missing enum values
Yann Dirson [Wed, 29 Nov 2023 09:16:26 +0000 (10:16 +0100)]
publisher: let compiler tell us of missing enum values

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agonet: add some debug-level traces
Yann Dirson [Tue, 21 Nov 2023 13:03:43 +0000 (14:03 +0100)]
net: add some debug-level traces

Should help digging precisely why a given event gets dropped.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agonetlink: remove redundant traces
Yann Dirson [Tue, 21 Nov 2023 12:31:14 +0000 (13:31 +0100)]
netlink: remove redundant traces

* separately logging header+nlas just duplicates with less info the
  full message log
* the full message itself is already available from netlink crate, as now
  described in the README

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoREADME: update usage doc to include recently-added logging
Yann Dirson [Thu, 30 Nov 2023 10:38:47 +0000 (11:38 +0100)]
README: update usage doc to include recently-added logging

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'ci-everycommit-nofail-on-wip' into 'main'
Yann Dirson [Wed, 29 Nov 2023 17:43:02 +0000 (17:43 +0000)]
Merge branch 'ci-everycommit-nofail-on-wip' into 'main'

ci: don't fail an `everycommit` pipeline when the failure is on a WIP commit

See merge request xen-project/xen-guest-agent!27

17 months agoci: don't fail the pipeline when a WIP commit does not build
Yann Dirson [Wed, 29 Nov 2023 14:17:30 +0000 (15:17 +0100)]
ci: don't fail the pipeline when a WIP commit does not build

17 months agoci: avoid useless "collapsed" flag on "section_end"
Yann Dirson [Wed, 29 Nov 2023 17:12:01 +0000 (18:12 +0100)]
ci: avoid useless "collapsed" flag on "section_end"

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: use a dedicated script to isolate complexity of running commands
Yann Dirson [Wed, 29 Nov 2023 16:04:28 +0000 (17:04 +0100)]
ci: use a dedicated script to isolate complexity of running commands

We're making the build logic more complicated, better have a real
script file to read it in good conditions.

Will also less the log look better, showing build args instead of printf
before the collapsed section.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Wed, 29 Nov 2023 11:52:10 +0000 (11:52 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!26

17 months agoCargo.lock: update outdated deps
Yann Dirson [Wed, 29 Nov 2023 11:46:36 +0000 (12:46 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'ci-everycommit' into 'main'
Yann Dirson [Wed, 29 Nov 2023 11:41:14 +0000 (11:41 +0000)]
Merge branch 'ci-everycommit' into 'main'

ci: in merge requests, build every commit (on Linux only)

See merge request xen-project/xen-guest-agent!25

17 months agoci: let everycommit before_script be also timed and collapsed-by-default
Yann Dirson [Wed, 29 Nov 2023 11:37:18 +0000 (12:37 +0100)]
ci: let everycommit before_script be also timed and collapsed-by-default

Consistency, nitpicking, and playing with my new toy ;)

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: in merge requests, build every commit (on Linux only)
Yann Dirson [Wed, 29 Nov 2023 09:43:27 +0000 (10:43 +0100)]
ci: in merge requests, build every commit (on Linux only)

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'ci-fix-scheduled' into 'main'
Yann Dirson [Tue, 28 Nov 2023 17:21:49 +0000 (17:21 +0000)]
Merge branch 'ci-fix-scheduled' into 'main'

ci: mark packaging jobs as not-scheduled, to fix scheduled jobs

See merge request xen-project/xen-guest-agent!24

17 months agoci: mark packaging jobs as not-scheduled, to fix scheduled jobs
Yann Dirson [Tue, 28 Nov 2023 17:16:17 +0000 (18:16 +0100)]
ci: mark packaging jobs as not-scheduled, to fix scheduled jobs

Without it, scheduled jobs want to run those jobs, but cannot since their
dependencies are exluded as not-scheduled.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'binary-packaging' into 'main'
Yann Dirson [Mon, 27 Nov 2023 14:42:55 +0000 (14:42 +0000)]
Merge branch 'binary-packaging' into 'main'

Binary packaging

See merge request xen-project/xen-guest-agent!15

17 months agoci: get version for RPM package from Cargo.toml
Yann Dirson [Tue, 14 Nov 2023 17:19:49 +0000 (18:19 +0100)]
ci: get version for RPM package from Cargo.toml

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: build RPM packages
Yann Dirson [Tue, 14 Nov 2023 16:52:51 +0000 (17:52 +0100)]
ci: build RPM packages

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: get version for DEB package from Cargo.toml
Yann Dirson [Tue, 14 Nov 2023 15:34:33 +0000 (16:34 +0100)]
ci: get version for DEB package from Cargo.toml

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: build DEB packages
Yann Dirson [Tue, 14 Nov 2023 14:59:00 +0000 (15:59 +0100)]
ci: build DEB packages

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoInitial DEB packaging using prebuilt binaries
Yann Dirson [Mon, 13 Nov 2023 17:10:16 +0000 (18:10 +0100)]
Initial DEB packaging using prebuilt binaries

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoInitial RPM packaging using prebuilt binaries
Yann Dirson [Mon, 6 Nov 2023 14:01:32 +0000 (15:01 +0100)]
Initial RPM packaging using prebuilt binaries

This leaves a FIXME note to update later when the article gets
published, but nothing to block this branch.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'cli-logging' into 'main'
Yann Dirson [Mon, 20 Nov 2023 17:46:18 +0000 (17:46 +0000)]
Merge branch 'cli-logging' into 'main'

Control logging from command line

Closes #11

See merge request xen-project/xen-guest-agent!22

17 months agocli: add --loglevel control (fixes: #11)
Yann Dirson [Mon, 20 Nov 2023 16:57:51 +0000 (17:57 +0100)]
cli: add --loglevel control (fixes: #11)

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agocli: add --stderr flag to help debugging (part of #11)
Yann Dirson [Mon, 20 Nov 2023 15:54:11 +0000 (16:54 +0100)]
cli: add --stderr flag to help debugging (part of #11)

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoenv_logger: set default log level to "info", consistently with syslog
Yann Dirson [Mon, 20 Nov 2023 16:57:24 +0000 (17:57 +0100)]
env_logger: set default log level to "info", consistently with syslog

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoImprove description of release process
Yann Dirson [Tue, 14 Nov 2023 17:28:12 +0000 (18:28 +0100)]
Improve description of release process

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Thu, 16 Nov 2023 16:46:22 +0000 (16:46 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock update

See merge request xen-project/xen-guest-agent!21

17 months agoCargo.lock: update outdated deps
Yann Dirson [Thu, 16 Nov 2023 16:40:19 +0000 (17:40 +0100)]
Cargo.lock: update outdated deps

Includes rolling back from yanked version of "cc" crate.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoCargo.lock: sync crate version
Yann Dirson [Thu, 16 Nov 2023 16:39:27 +0000 (17:39 +0100)]
Cargo.lock: sync crate version

5978771c72d02c109e304108a9df2828dd69a18f should have included this.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'ci-freebsd' into 'main'
Yann Dirson [Thu, 16 Nov 2023 16:34:47 +0000 (16:34 +0000)]
Merge branch 'ci-freebsd' into 'main'

Cross-build support for FreeBSD binaries through Docker

See merge request xen-project/xen-guest-agent!18

17 months agoci: cross-build FreeBSD 12 binary
Yann Dirson [Wed, 15 Nov 2023 16:14:00 +0000 (17:14 +0100)]
ci: cross-build FreeBSD 12 binary

This uses cross-rs container image as a base, for its
already-functional toolchain.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: use our script to fetch freebsd packages
Yann Dirson [Mon, 13 Nov 2023 11:22:17 +0000 (12:22 +0100)]
ci: use our script to fetch freebsd packages

Apparently much more reliable.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoCross-build support for FreeBSD binaries through Docker
Yann Dirson [Wed, 8 Nov 2023 15:51:47 +0000 (16:51 +0100)]
Cross-build support for FreeBSD binaries through Docker

This requires a bleeding-edge cross-rs and a few workarounds.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'ci' into 'main'
Yann Dirson [Tue, 14 Nov 2023 14:47:54 +0000 (14:47 +0000)]
Merge branch 'ci' into 'main'

CI improvements and release artifacts

See merge request xen-project/xen-guest-agent!20

17 months agoci: add a job for release build
Yann Dirson [Tue, 14 Nov 2023 14:32:30 +0000 (15:32 +0100)]
ci: add a job for release build

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: add flags variable, be more verbose
Yann Dirson [Tue, 14 Nov 2023 10:06:06 +0000 (11:06 +0100)]
ci: add flags variable, be more verbose

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoci: build on a Debian 10 image
Yann Dirson [Tue, 14 Nov 2023 10:03:31 +0000 (11:03 +0100)]
ci: build on a Debian 10 image

This is the oldest supported Debian release, we'll use it to generate
binaries with widest compatibility.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoFix dev version
Yann Dirson [Tue, 14 Nov 2023 09:53:18 +0000 (10:53 +0100)]
Fix dev version

"0.2.0-dev" sorts before "0.2.0" in SemVer.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoDocument release process
Yann Dirson [Fri, 3 Nov 2023 14:36:41 +0000 (15:36 +0100)]
Document release process

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoInclude a copy of the AGPL license.
Yann Dirson [Mon, 13 Nov 2023 17:10:41 +0000 (18:10 +0100)]
Include a copy of the AGPL license.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
17 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 13 Nov 2023 15:59:09 +0000 (15:59 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!19

17 months agoCargo.lock: update outdated deps
Yann Dirson [Mon, 13 Nov 2023 15:55:58 +0000 (16:55 +0100)]
Cargo.lock: update outdated deps

18 months agoMerge branch 'xenstore-0.5' into 'main'
Yann Dirson [Wed, 8 Nov 2023 08:59:22 +0000 (08:59 +0000)]
Merge branch 'xenstore-0.5' into 'main'

Cargo.toml: allow xenstore-rs 0.5

See merge request xen-project/xen-guest-agent!17

18 months agoCargo.toml: allow xenstore-rs 0.5
Yann Dirson [Wed, 8 Nov 2023 08:38:42 +0000 (09:38 +0100)]
Cargo.toml: allow xenstore-rs 0.5

Retain compatibility with 0.4, but deactivate all features, since we are
not making any use of async_watch.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Wed, 8 Nov 2023 08:47:58 +0000 (08:47 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!16

18 months agoCargo.lock: update outdated deps
Yann Dirson [Tue, 7 Nov 2023 17:31:17 +0000 (18:31 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'fix-formatting-errors' into 'main'
Yann Dirson [Thu, 2 Nov 2023 16:06:19 +0000 (16:06 +0000)]
Merge branch 'fix-formatting-errors' into 'main'

Fix error messages not getting formatted

See merge request xen-project/xen-guest-agent!13

18 months agoFix error messages not getting formatted
Yann Dirson [Thu, 2 Nov 2023 15:04:31 +0000 (16:04 +0100)]
Fix error messages not getting formatted

Errors that never happened, bugs that did not get caught, including
messages that did not get updated accross refactorings, and types not
implementing std::fmt::Debug.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'freebsd-memory' into 'main'
Yann Dirson [Thu, 2 Nov 2023 09:34:28 +0000 (09:34 +0000)]
Merge branch 'freebsd-memory' into 'main'

Add a custom memory collector for FreeBSD (#7)

Closes #7

See merge request xen-project/xen-guest-agent!12

18 months agoAdd a custom memory collector for FreeBSD (fixes: #7)
Yann Dirson [Thu, 26 Oct 2023 13:54:57 +0000 (15:54 +0200)]
Add a custom memory collector for FreeBSD (fixes: #7)

This collects metrics through sysctl, and compute available memory as
the FreeBSD port of xe-guest-utilities (shell-based) 6.0.2 did.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoPropagate errors from get_available_kb()
Yann Dirson [Tue, 31 Oct 2023 17:17:13 +0000 (18:17 +0100)]
Propagate errors from get_available_kb()

It took me some time to identify a proper syntax to propagate the
error from a match branch, now we can be more specific about what we
ignore.  Now log a warning once in the "Unsupported" case (when
fetching the total memory), and let other memory-collector errors
cause a fatal error.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoREADME: small update of 'current state' section
Yann Dirson [Thu, 2 Nov 2023 09:22:47 +0000 (10:22 +0100)]
README: small update of 'current state' section

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'xenstore-0.4' into 'main'
Yann Dirson [Tue, 31 Oct 2023 10:05:35 +0000 (10:05 +0000)]
Merge branch 'xenstore-0.4' into 'main'

Switch to new xenstore-rs 0.4, update outdated deps

See merge request xen-project/xen-guest-agent!11

18 months agoSwitch to new xenstore-rs 0.4
Yann Dirson [Tue, 31 Oct 2023 10:02:02 +0000 (11:02 +0100)]
Switch to new xenstore-rs 0.4

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoCargo.lock: update outdated deps
Yann Dirson [Tue, 31 Oct 2023 09:59:57 +0000 (10:59 +0100)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'unpin-xenstore-sys' into 'main'
Yann Dirson [Thu, 26 Oct 2023 09:29:51 +0000 (09:29 +0000)]
Merge branch 'unpin-xenstore-sys' into 'main'

Unpin xenstore-sys and update deps

See merge request xen-project/xen-guest-agent!10

18 months agoUnpin xenstore-sys to allow latest 0.1.4
Yann Dirson [Thu, 26 Oct 2023 09:14:55 +0000 (11:14 +0200)]
Unpin xenstore-sys to allow latest 0.1.4

0.1.4 relaxes the build-dep on buildgen for compatibility with latest
versions.

Reverts fe26b6de06d5e9ffa0566658b1f64bccdc0515fe.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoCargo.lock: update outdated deps
Yann Dirson [Thu, 26 Oct 2023 09:13:36 +0000 (11:13 +0200)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'logging' into 'main'
Yann Dirson [Wed, 25 Oct 2023 16:05:48 +0000 (16:05 +0000)]
Merge branch 'logging' into 'main'

Proper logging using syslog on unix (closes:#4)

See merge request xen-project/xen-guest-agent!9

18 months agoSend logs to syslog on unix, else to stdout (closes:#4)
Yann Dirson [Wed, 25 Oct 2023 13:57:46 +0000 (15:57 +0200)]
Send logs to syslog on unix, else to stdout (closes:#4)

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoBump to xenstore-rs 0.3.4 to avoid buggy 0.3.3
Yann Dirson [Wed, 25 Oct 2023 15:03:36 +0000 (17:03 +0200)]
Bump to xenstore-rs 0.3.4 to avoid buggy 0.3.3

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoUse log crate instead of println for user feedback
Yann Dirson [Wed, 25 Oct 2023 12:57:06 +0000 (14:57 +0200)]
Use log crate instead of println for user feedback

18 months agoMerge branch 'pin-xenstore-sys' into 'main'
Yann Dirson [Wed, 25 Oct 2023 13:19:02 +0000 (13:19 +0000)]
Merge branch 'pin-xenstore-sys' into 'main'

Explicit pinning of xenstore-sys

See merge request xen-project/xen-guest-agent!8

18 months agoCargo.lock: update outdated deps
Yann Dirson [Wed, 25 Oct 2023 12:38:06 +0000 (14:38 +0200)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoExplicit pinning of xenstore-sys
Yann Dirson [Wed, 25 Oct 2023 12:27:24 +0000 (14:27 +0200)]
Explicit pinning of xenstore-sys

Explicit reference to xenstore-sys, to allow to run `cargo update`
without bringing back older version of bindgen and its vulnerable
dependencies.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'xenstore-0.3.3' into 'main'
Yann Dirson [Wed, 25 Oct 2023 12:32:44 +0000 (12:32 +0000)]
Merge branch 'xenstore-0.3.3' into 'main'

Switch to xenstore-rs official release (fixes #6)

Closes #6

See merge request xen-project/xen-guest-agent!7

18 months agoSwitch to xenstore-rs official release (fixes #6)
Yann Dirson [Wed, 25 Oct 2023 11:59:33 +0000 (13:59 +0200)]
Switch to xenstore-rs official release (fixes #6)

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Mon, 23 Oct 2023 15:29:54 +0000 (15:29 +0000)]
Merge branch 'cargo-lock' into 'main'

update outdated deps

See merge request xen-project/xen-guest-agent!6

18 months agoCargo.lock: update outdated deps
Yann Dirson [Thu, 19 Oct 2023 07:30:39 +0000 (09:30 +0200)]
Cargo.lock: update outdated deps

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoBump version to 0.2.0-dev after release
Yann Dirson [Mon, 23 Oct 2023 08:58:01 +0000 (10:58 +0200)]
Bump version to 0.2.0-dev after release

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge pull request #6 from ydirson/dependabot/cargo/rustix-0.38.19
Yann Dirson [Thu, 19 Oct 2023 07:27:16 +0000 (09:27 +0200)]
Merge pull request #6 from ydirson/dependabot/cargo/rustix-0.38.19

build(deps): bump rustix from 0.38.14 to 0.38.19

18 months agobuild(deps): bump rustix from 0.38.14 to 0.38.19
dependabot[bot] [Wed, 18 Oct 2023 18:43:28 +0000 (18:43 +0000)]
build(deps): bump rustix from 0.38.14 to 0.38.19

Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.38.14 to 0.38.19.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.14...v0.38.19)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
18 months agoPrepare for 0.2.0 0.2.0
Yann Dirson [Wed, 11 Oct 2023 15:11:37 +0000 (17:11 +0200)]
Prepare for 0.2.0

18 months agoxenstore_std: show more details about unparsed os version
Yann Dirson [Wed, 11 Oct 2023 15:09:22 +0000 (17:09 +0200)]
xenstore_std: show more details about unparsed os version

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'use-crate-version' into 'main'
Olivier Lambert [Wed, 11 Oct 2023 14:50:25 +0000 (14:50 +0000)]
Merge branch 'use-crate-version' into 'main'

xenstore schemas: use crate version from Cargo.toml

See merge request xen-project/xen-guest-agent!5

18 months agoxenstore schemas: use crate version from Cargo.toml
Yann Dirson [Wed, 11 Oct 2023 12:30:22 +0000 (14:30 +0200)]
xenstore schemas: use crate version from Cargo.toml

* "std" schema will now advertise as "1.0.0-proto-0.1.0"
* "rfc" schema just spares a duplication of the version string

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
18 months agoMerge branch 'cargo-lock' into 'main'
Yann Dirson [Wed, 11 Oct 2023 09:47:39 +0000 (09:47 +0000)]
Merge branch 'cargo-lock' into 'main'

Cargo.lock: update outdated deps

See merge request xen-project/xen-guest-agent!4