[PULL 1/2] qga-win: implement a 'guest-get-load' command

2025-06-12 Thread Konstantin Kostiuk
Windows has no native equivalent API, but it would be possible to simulate it as illustrated here (BSD-3-Clause): https://github.com/giampaolo/psutil/pull/1485 Reviewed-by: Daniel P. Berrangé Tested-by: Dehan Meng Reviewed-by: Yan Vugenfirer Signed-off-by: Konstantin Kostiuk --- qga

[PULL 2/2] qga: Add tests for guest-get-load command

2025-06-12 Thread Konstantin Kostiuk
Tested-by: Dehan Meng Reviewed-by: Yan Vugenfirer Signed-off-by: Konstantin Kostiuk --- tests/unit/test-qga.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tests/unit/test-qga.c b/tests/unit/test-qga.c index 541b08a5e7..587e30c7e4 100644 --- a/tests/unit/test-qga.c

[PULL 0/2] QGA patches for 2025-06-12

2025-06-12 Thread Konstantin Kostiuk
2025-06-12 ---- Konstantin Kostiuk (2): qga-win: implement a 'guest-get-load' command qga: Add tests for guest-get-load command qga/commands-win32.c | 148 + qga/guest-agent-core.h | 10 qga/main.c | 39 ++

[PATCH v2 2/2] qga: Add tests for guest-get-load command

2025-03-24 Thread Konstantin Kostiuk
Tested-by: Dehan Meng Reviewed-by: Yan Vugenfirer Signed-off-by: Konstantin Kostiuk --- tests/unit/test-qga.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tests/unit/test-qga.c b/tests/unit/test-qga.c index 541b08a5e7..587e30c7e4 100644 --- a/tests/unit/test-qga.c

[PATCH v2 1/2] qga-win: implement a 'guest-get-load' command

2025-03-24 Thread Konstantin Kostiuk
Windows has no native equivalent API, but it would be possible to simulate it as illustrated here (BSD-3-Clause): https://github.com/giampaolo/psutil/pull/1485 Reviewed-by: Daniel P. Berrangé Tested-by: Dehan Meng Reviewed-by: Yan Vugenfirer Signed-off-by: Konstantin Kostiuk --- qga

[PATCH v2 0/2] qga: Add 'guest-get-load' command

2025-03-24 Thread Konstantin Kostiuk
v1 -> v2: - Added comments about init_load_avg_counter v1: https://patchew.org/QEMU/20250314113847.109460-1-kkost...@redhat.com/ Konstantin Kostiuk (2): qga-win: implement a 'guest-get-load' command qga: Add tests for guest-get-load command qga/commands-wi

Re: [PATCH 1/2] qga-win: implement a 'guest-get-load' command

2025-03-19 Thread Konstantin Kostiuk
On Wed, Mar 19, 2025 at 5:02 PM Daniel P. Berrangé wrote: > On Fri, Mar 14, 2025 at 01:38:46PM +0200, Konstantin Kostiuk wrote: > > Windows has no native equivalent API, but it would be possible to > > simulate it as illustrated here (BSD-3-Clause): > > > > https://

[PATCH 1/2] qga-win: implement a 'guest-get-load' command

2025-03-14 Thread Konstantin Kostiuk
Windows has no native equivalent API, but it would be possible to simulate it as illustrated here (BSD-3-Clause): https://github.com/giampaolo/psutil/pull/1485 Signed-off-by: Konstantin Kostiuk --- qga/commands-win32.c | 140 + qga/guest-agent-core.h

[PATCH 2/2] qga: Add tests for guest-get-load command

2025-03-14 Thread Konstantin Kostiuk
Signed-off-by: Konstantin Kostiuk --- tests/unit/test-qga.c | 17 + 1 file changed, 17 insertions(+) diff --git a/tests/unit/test-qga.c b/tests/unit/test-qga.c index 541b08a5e7..587e30c7e4 100644 --- a/tests/unit/test-qga.c +++ b/tests/unit/test-qga.c @@ -332,6 +332,22 @@ static

[PATCH 0/2] qga: Add 'guest-get-load' command

2025-03-14 Thread Konstantin Kostiuk
Konstantin Kostiuk (2): qga-win: implement a 'guest-get-load' command qga: Add tests for guest-get-load command qga/commands-win32.c | 140 + qga/guest-agent-core.h | 10 +++ qga/main.c | 39 qga/meson.build

Re: [RFC PATCH] meson.build: don't bother with split-debug for windows

2025-03-14 Thread Konstantin Kostiuk
Best Regards, Konstantin Kostiuk. On Fri, Mar 14, 2025 at 12:23 PM Alex Bennée wrote: > It was reported this breaks the final artefacts on windows when run > under Wine. > Not only Wine, but Windows as well. Tested on Windows Server 2022. > > Signed-off-by: Alex Bennée &

Re: Cross-compilation artifact is broken

2025-03-14 Thread Konstantin Kostiuk
On Wed, Mar 12, 2025 at 6:24 PM Alex Bennée wrote: > Daniel P. Berrangé writes: > > > On Wed, Mar 12, 2025 at 02:05:09PM +, Daniel P. Berrangé wrote: > >> On Wed, Mar 12, 2025 at 03:52:45PM +0200, Konstantin Kostiuk wrote: > >> > Hi All, > >> >

Re: Cross-compilation artifact is broken

2025-03-12 Thread Konstantin Kostiuk
: section below image base /usr/lib/gcc/x86_64-w64-mingw32/14.1.1/../../../../x86_64-w64-mingw32/bin/ld: tests/qtest/fuzz-e1000e-test.exe:/24: section below image base Best Regards, Konstantin Kostiuk. On Wed, Mar 12, 2025 at 4:05 PM Daniel P. Berrangé wrote: > On Wed, Mar 12, 2025 at 03:52:4

Cross-compilation artifact is broken

2025-03-12 Thread Konstantin Kostiuk
b.com/qemu-project/qemu/-/commit/563b1a35ed1f1151505d4fe5f723827d1b3fd4bc Adding --disable-split-debug to the configure CLI fixes the issue. $ x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc (GCC) 14.2.0 My question is, is this expected behavior or is this a bug? Best Regards, Konstantin Kostiuk.

[PULL 3/3] qga: Don't daemonize before channel is initialized

2025-02-26 Thread Konstantin Kostiuk
Related bug: https://bugs.gentoo.org/810628 Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko Reviewed-by: Konstantin Kostiuk Message-ID: <7a42b0cbda5c7e01cf76bc1b29a1210cd018fa78.1736261360.git.mpriv...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/main.c | 24 ++

[PULL 1/3] qga: Add log to guest-fsfreeze-thaw command

2025-02-26 Thread Konstantin Kostiuk
Reviewed-by: Daniel P. Berrangé Message-ID: <20241216154552.213961-2-kkost...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/commands-posix.c | 2 ++ qga/commands-win32.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 6e3c

[PULL 2/3] qga: Invert logic on return value in main()

2025-02-26 Thread Konstantin Kostiuk
d set it explicitly to success value in that one specific case. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko Reviewed-by: Konstantin Kostiuk Message-ID: <8a28265f50177a8dc4c10fcf4146e85a7fd748ee.1736261360.git.mpriv...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/m

[PULL 0/3] Misc QGA patches for 2025-02-26

2025-02-26 Thread Konstantin Kostiuk
pull-2025-02-26 -------- Konstantin Kostiuk (1): qga: Add log to guest-fsfreeze-thaw command Michal Privoznik (2): qga: Invert logic on return value in main() qga: Don't daemonize before channel is initialized qga/commands-posix.c | 2 ++ qga/commands-win32.c

Re: [PATCH v3 1/2] qga: Invert logic on return value in main()

2025-02-26 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Tue, Jan 7, 2025 at 4:52 PM Michal Privoznik wrote: > Current logic on return value ('ret' variable) in main() is error > prone. The variable is initialized to EXIT_SUCCESS and then set > to EXIT_FAILURE on error paths. This makes it very

Re: [PATCH v3 2/2] qga: Don't daemonize before channel is initialized

2025-02-26 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Tue, Jan 7, 2025 at 4:52 PM Michal Privoznik wrote: > If the agent is set to daemonize but for whatever reason fails to > init the channel, the error message is lost. Worse, the agent > daemonizes needlessly and returns success. For instance: > &

Re: [PATCH v2 1/1] qga: Add log to guest-fsfreeze-thaw command

2025-01-15 Thread Konstantin Kostiuk
ping On Mon, Jan 6, 2025 at 11:37 AM Konstantin Kostiuk wrote: > ping > > On Mon, Dec 16, 2024 at 5:47 PM Konstantin Kostiuk > wrote: > >> Signed-off-by: Konstantin Kostiuk >> --- >> qga/commands-posix.c | 2 ++ >> qga/commands-win32.c | 3 +++ >>

[PULL 1/2] qga: implement a 'guest-get-load' command

2025-01-06 Thread Konstantin Kostiuk
left as an exercise for future contributors. Signed-off-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Message-ID: <20241202121927.864335-1-berra...@redhat.com> Signed-off-by: Konstantin Kostiuk --- meson.build | 1 + qga/commands-posix.c | 20 qga/qa

[PULL 0/2] Misc QGA patches for 2025-01-06

2025-01-06 Thread Konstantin Kostiuk
The following changes since commit 9ee90cfc25747ab25c7da31a50f167fc5122e20e: Merge tag 'qtest-20250102-pull-request' of https://gitlab.com/farosas/qemu into staging (2025-01-03 09:14:11 -0500) are available in the Git repository at: https://github.com/kostyanf14/qemu.git tags/qga-pull-2025-

[PULL 2/2] qemu-ga: Optimize freeze-hook script logic of logging error

2025-01-06 Thread Konstantin Kostiuk
From: Dehan Meng Make sure the error log of fsfreeze hooks when freeze/thaw/snapshot could be logged to system logs if the default logfile of qga can't be written or other situations Signed-off-by: Dehan Meng Reviewed-by: Yan Vugenfirer Reviewed-by: Konstantin Kostiuk Messa

Re: [PATCH v2 1/1] qga: Add log to guest-fsfreeze-thaw command

2025-01-06 Thread Konstantin Kostiuk
ping On Mon, Dec 16, 2024 at 5:47 PM Konstantin Kostiuk wrote: > Signed-off-by: Konstantin Kostiuk > --- > qga/commands-posix.c | 2 ++ > qga/commands-win32.c | 3 +++ > 2 files changed, 5 insertions(+) > > diff --git a/qga/commands-posix.c b/qga/commands-posix

Re: [PATCH] qemu-ga: Optimize freeze-hook script logic of logging error

2025-01-06 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Wed, Dec 25, 2024 at 10:37 AM Dehan Meng wrote: > Make sure the error log of fsfreeze hooks > when freeze/thaw/snapshot could be logged > to system logs if the default logfile of > qga can't be written or other situations > > Si

Re: [PULL 0/3] Misc QGA patches for 2024-12-18

2024-12-18 Thread Konstantin Kostiuk
Hi Daniel, Sorry, I just missed it. I will send one more PR in a few days and include it. Best Regards, Konstantin Kostiuk. On Wed, Dec 18, 2024 at 2:07 PM Daniel P. Berrangé wrote: > Any reason this skipped inclusion of my patch: > > Subject: [PATCH] qga: implement a '

Re: [PATCH v2 1/4] qga: Don't access global variable in run_agent_once()

2024-12-18 Thread Konstantin Kostiuk
Hi Michal, The PULL with this patch was sent. Skip it in the next version of this series. Best Regards, Konstantin Kostiuk. On Thu, Dec 5, 2024 at 6:19 PM Michal Privoznik wrote: > The run_agent_once() function is already given GAState via an > argument. There's no need to access

[PULL 2/3] qemu-ga-win: Fix a typo error

2024-12-18 Thread Konstantin Kostiuk
From: Dehan Meng There is a typo error for api 'guest-get-osinfo', the win2025's version in WIN_10_0_SERVER_VERSION_MATRIX should be adjusted. Signed-off-by: Dehan Meng Reviewed-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Link: https://lore.kernel.org/r/202412100546

[PULL 0/3] Misc QGA patches for 2024-12-18

2024-12-18 Thread Konstantin Kostiuk
The following changes since commit 8032c78e556cd0baec111740a6c636863f9bd7c8: Merge tag 'firmware-20241216-pull-request' of https://gitlab.com/kraxel/qemu into staging (2024-12-16 14:20:33 -0500) are available in the Git repository at: https://github.com/kostyanf14/qemu.git tags/qga-pull-202

[PULL 1/3] qga: skip bind mounts in fs list

2024-12-18 Thread Konstantin Kostiuk
/open-vm-tools/commit/d58847b497e212737007958c945af1df22a8ab58 Signed-off-by: Jean-Louis Dupond Reviewed-by: Konstantin Kostiuk Link: https://lore.kernel.org/r/20241002100634.162499-2-jean-lo...@dupond.be Signed-off-by: Konstantin Kostiuk --- qga/commands-linux.c | 25 + 1

[PULL 3/3] qga: Don't access global variable in run_agent_once()

2024-12-18 Thread Konstantin Kostiuk
e the global variable. Stick with the function argument. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko Reviewed-by: Konstantin Kostiuk Link: https://lore.kernel.org/r/8ae7f5d5032b14a5b956fe8aaf47bae5ca401699.1733414906.git.mpriv...@redhat.com Signed-off-by: Konstantin Kostiuk --- qga/m

Re: [PATCH 1/3] osdep: Add qemu_mkdir_with_parents()

2024-12-16 Thread Konstantin Kostiuk
On Mon, Dec 16, 2024 at 7:12 PM Peter Xu wrote: > On Mon, Dec 16, 2024 at 04:56:33PM +, Peter Maydell wrote: > > On Mon, 16 Dec 2024 at 16:14, Peter Xu wrote: > > > > > > QEMU uses g_mkdir_with_parents() a lot, especially in the case where > the > > > failure case is ignored so an abort is e

Re: [PATCH v2 4/4] qga: Make run_agent() and run_agent_once() return no value

2024-12-16 Thread Konstantin Kostiuk
On Thu, Dec 5, 2024 at 6:19 PM Michal Privoznik wrote: > After previous commits, run_agent_once() can't return anything > else but EXIT_SUCCESS. Transitionally, run_agent() can't return > anything else but EXIT_SUCCESS too. There's not much value in > having these function return an integer. Make

[PATCH v2 0/1] qga: Add log to guest-fsfreeze-thaw command

2024-12-16 Thread Konstantin Kostiuk
v1 -> v2: Log only in case of successful thawing v1: https://patchew.org/QEMU/20241209111817.31307-1-kkost...@redhat.com/ Konstantin Kostiuk (1): qga: Add log to guest-fsfreeze-thaw command qga/commands-posix.c | 2 ++ qga/commands-win32.c | 3 +++ 2 files changed, 5 insertions(+) -- 2.47.1

[PATCH v2 1/1] qga: Add log to guest-fsfreeze-thaw command

2024-12-16 Thread Konstantin Kostiuk
Signed-off-by: Konstantin Kostiuk --- qga/commands-posix.c | 2 ++ qga/commands-win32.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 636307bedf..359a56be81 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -805,8 +805,10

Re: [PATCH] qemu-ga-win: Fix a typo error

2024-12-10 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk Best Regards, Konstantin Kostiuk. On Tue, Dec 10, 2024 at 10:13 AM Daniel P. Berrangé wrote: > On Tue, Dec 10, 2024 at 01:46:16PM +0800, Dehan Meng wrote: > > There is a typo error for api 'guest-get-osinfo', > >

Re: [PATCH] qga: Add log to guest-fsfreeze-thaw command

2024-12-09 Thread Konstantin Kostiuk
Best Regards, Konstantin Kostiuk. On Mon, Dec 9, 2024 at 1:30 PM Daniel P. Berrangé wrote: > On Mon, Dec 09, 2024 at 01:18:17PM +0200, Konstantin Kostiuk wrote: > > Signed-off-by: Konstantin Kostiuk > > --- > > qga/commands-posix.c | 3 +++ > > qga/commands-

[PATCH] qga: Add log to guest-fsfreeze-thaw command

2024-12-09 Thread Konstantin Kostiuk
Signed-off-by: Konstantin Kostiuk --- qga/commands-posix.c | 3 +++ qga/commands-win32.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 636307bedf..ac8d150582 100644 --- a/qga/commands-posix.c +++ b/qga/commands-posix.c @@ -805,6 +805,9

Re: [PATCH 3/4] qga: Don't daemonize before channel is initialized

2024-12-04 Thread Konstantin Kostiuk
On Mon, Nov 4, 2024 at 11:54 AM Michal Privoznik wrote: > If the agent is set to daemonize but for whatever reason fails to > init the channel, the error message is lost. Worse, the agent > daemonizes needlessly and returns success. For instance: > > # qemu-ga -m virtio-serial \ > -

Re: [PATCH 2/4] qga: Invert logic on return value in main()

2024-12-04 Thread Konstantin Kostiuk
Hi Michal, Please fix the issue that Jan mentioned. All commits should be logically correct even if it part of one series. Applying this will cause regression. Best Regards, Konstantin Kostiuk. On Wed, Nov 6, 2024 at 6:07 PM Ján Tomko wrote: > On a Monday in 2024, Michal Privoznik wr

Re: [PATCH 1/4] qga: Don't access global variable in run_agent_once()

2024-12-04 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Mon, Nov 4, 2024 at 11:54 AM Michal Privoznik wrote: > The run_agent_once() function is already given GAState via an > argument. There's no need to access the global ga_state variable > which points to the argument anyways (thanks to >

Re: [PATCH] qga: implement a 'guest-get-load' command

2024-12-04 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Mon, Dec 2, 2024 at 2:19 PM Daniel P. Berrangé wrote: > Provide a way to report the process load average, via a new > 'guest-get-load' command. > > This is only implemented for POSIX platforms providing 'getloadavg'. > &

Re: [PATCH] qga: skip bind mounts in fs list

2024-11-26 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk I will merge it into the next QEMU release. On Mon, Oct 28, 2024 at 2:15 PM Jean-Louis Dupond wrote: > Hi Konstantin, > > Thanks for your response. > What I observed was when running CloudLinux is that with a /tmp on a loop > device, is that th

Re: [PULL 0/3] QGA fixes for guest_network_get_route command for 9.2

2024-11-08 Thread Konstantin Kostiuk
Hi Peter, Please update me regarding the coverity issues. Is everything fixed or not? Best Regards, Konstantin Kostiuk. On Fri, Nov 8, 2024 at 12:22 PM Peter Maydell wrote: > On Thu, 7 Nov 2024 at 10:40, Konstantin Kostiuk > wrote: > > > > The following ch

[PULL 3/3] qemu-ga: Avoiding freeing line prematurely

2024-11-07 Thread Konstantin Kostiuk
From: Dehan Meng It's now only freed at the end of the function. Signed-off-by: Dehan Meng Reviewed-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Message-ID: <20241107102155.57573-4-kkost...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/commands-linux.c | 3

[PULL 0/3] QGA fixes for guest_network_get_route command for 9.2

2024-11-07 Thread Konstantin Kostiuk
The following changes since commit f15f7273ea55472d5904c53566c82369d81214c1: Merge tag 'pull-target-arm-20241105' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-11-05 21:27:18 +) are available in the Git repository at: https://github.com/kostyanf14/qemu.git tags/

[PULL 1/3] qemu-ga: Add 'Null' check and Redefine 'route'

2024-11-07 Thread Konstantin Kostiuk
From: Dehan Meng sscanf return values are checked and add 'Null' check for mandatory parameters. And merged redundant route and networkroute variables. Signed-off-by: Dehan Meng Reviewed-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Message-ID: <20241107102155.

[PULL 2/3] qemu-ga: Optimize var declaration and definition

2024-11-07 Thread Konstantin Kostiuk
From: Dehan Meng Variable declarations moved to the beginning of blocks Followed the coding style of using snake_case for variable names. Proper initialization of param 'size_t n' to '0' for Signed-off-by: Dehan Meng Reviewed-by: Daniel P. Berrangé Reviewed-by: Konstantin

[PATCH v6 0/3] qemu-ga: Fixes for guest_network_get_route

2024-11-07 Thread Konstantin Kostiuk
v6: Fix compilation errors v5: Summarize and merge commits v4: Handle g_autoptr() to simplify code and memory leak v3: Modify commits message and do some minor update. v2: Split v1 up to separate commits for each logically independent change Konstantin Kostiuk (3): qemu-ga: Add 'Null&#

[PATCH v6 2/3] qemu-ga: Optimize var declaration and definition

2024-11-07 Thread Konstantin Kostiuk
Variable declarations moved to the beginning of blocks Followed the coding style of using snake_case for variable names. Proper initialization of param 'size_t n' to '0' for Signed-off-by: Dehan Meng Reviewed-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Signe

[PATCH v6 3/3] qemu-ga: Avoiding freeing line prematurely

2024-11-07 Thread Konstantin Kostiuk
It's now only freed at the end of the function. Signed-off-by: Dehan Meng Reviewed-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Signed-off-by: Konstantin Kostiuk --- qga/commands-linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qga/commands-linu

[PATCH v6 1/3] qemu-ga: Add 'Null' check and Redefine 'route'

2024-11-07 Thread Konstantin Kostiuk
sscanf return values are checked and add 'Null' check for mandatory parameters. And merged redundant route and networkroute variables. Signed-off-by: Dehan Meng Reviewed-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Signed-off-by: Konstantin Kostiuk --- qga/commands-li

Re: [PATCH v5 3/3] qemu-ga: Avoiding freeing line prematurely

2024-11-06 Thread Konstantin Kostiuk
On Wed, Nov 6, 2024 at 10:42 AM Dehan Meng wrote: > It's now only freed at the end of the function. > > Signed-off-by: Dehan Meng > --- > qga/commands-linux.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/qga/commands-linux.c b/qga/commands-linux.c > index 55c3

Re: [PATCH v5 1/3] qemu-ga: Add 'Null' check and Redefine 'route'

2024-11-06 Thread Konstantin Kostiuk
Best Regards, Konstantin Kostiuk. On Wed, Nov 6, 2024 at 10:41 AM Dehan Meng wrote: > sscanf return values are checked and add 'Null' check for > mandatory parameters. And merged redundant route and > networkroute variables. > > Signed-off-by: Dehan Meng > ---

Re: [PATCH v5 3/3] qemu-ga: Avoiding freeing line prematurely

2024-11-06 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Wed, Nov 6, 2024 at 3:38 PM Daniel P. Berrangé wrote: > On Wed, Nov 06, 2024 at 04:41:34PM +0800, Dehan Meng wrote: > > It's now only freed at the end of the function. > > > > Signed-off-by: Dehan Meng > > --- > > q

Re: [PATCH v5 2/3] qemu-ga: Optimize var declaration and definition

2024-11-06 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Wed, Nov 6, 2024 at 3:36 PM Daniel P. Berrangé wrote: > On Wed, Nov 06, 2024 at 04:41:33PM +0800, Dehan Meng wrote: > > Variable declarations moved to the beginning of blocks > > Followed the coding style of using snake_case for variable na

Re: [PATCH v5 1/3] qemu-ga: Add 'Null' check and Redefine 'route'

2024-11-06 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Wed, Nov 6, 2024 at 3:35 PM Daniel P. Berrangé wrote: > On Wed, Nov 06, 2024 at 04:41:32PM +0800, Dehan Meng wrote: > > sscanf return values are checked and add 'Null' check for > > mandatory parameters. And merged redundant r

Re: [PATCH] qemu-ga: Fix a SIGSEGV on guest-set-time command

2024-11-04 Thread Konstantin Kostiuk
Hi Sunil, I updated the commit message according to Daniel's comment and got this patch to merge. Best Regards, Konstantin Kostiuk. On Mon, Oct 21, 2024 at 11:26 AM Daniel P. Berrangé wrote: > On Fri, Oct 18, 2024 at 03:34:39PM +0530, Sunil Nimmagadda wrote: > > qemu-ga on a N

Re: [PATCH 05/12] qga: fix -Wsometimes-uninitialized windows warning

2024-11-04 Thread Konstantin Kostiuk
Hi Pierrick, I got this patch in my PULL with QGA patches. Best Regards, Konstantin Kostiuk. On Thu, Oct 31, 2024 at 3:32 PM Konstantin Kostiuk wrote: > Reviewed-by: Konstantin Kostiuk > > On Thu, Oct 31, 2024 at 6:05 AM Pierrick Bouvier < > pierrick.bouv...@linaro.org> wr

Re: [PATCH 06/12] qga: fix missing static and prototypes windows warnings

2024-11-04 Thread Konstantin Kostiuk
Hi Pierrick, I got this patch in my PULL with QGA patches. Best Regards, Konstantin Kostiuk. On Thu, Oct 31, 2024 at 3:32 PM Konstantin Kostiuk wrote: > Reviewed-by: Konstantin Kostiuk > > On Thu, Oct 31, 2024 at 6:05 AM Pierrick Bouvier < > pierrick.bouv...@linaro.org> wr

[PULL 2/3] qga: fix missing static and prototypes windows warnings

2024-11-04 Thread Konstantin Kostiuk
tDll, DWORD dwReason, LPVOID lpReserved) | ^ | static Signed-off-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Link: https://lore.kernel.org/r/20241031040426.772604-7-pierrick.bouv...@linaro.org Signed-off-by: Konstantin Kostiuk --- qga/vss-win32

[PULL 1/3] qga: fix -Wsometimes-uninitialized windows warning

2024-11-04 Thread Konstantin Kostiuk
nitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] 383 | if (!create_acl(userInfo, &pACL, errp)) { | ^~~~~~~~~~ ../qga/commands-windows-ssh.c:415:15: note: uninitialized use occurs here 415 | LocalFree(userPSID);

[PULL 3/3] qemu-ga: Fix a SIGSEGV in ga_run_command() helper

2024-11-04 Thread Konstantin Kostiuk
\ -device virtio-serial \ -device virtconsole,chardev=qga0,name=org.qemu.guest_agent.0 This patch rectifies the operator precedence while assigning the NUL terminator. Fixes: c3f32c13a325f1ca9a0b08c19fefe9e5cc04289d Signed-off-by: Sunil Nimmagadda Reviewed-by: Konstantin Kostiuk Reviewed-by: Da

[PULL 0/3] Misc QEMU Guest Agent patches for 2024-11-04

2024-11-04 Thread Konstantin Kostiuk
The following changes since commit c94bee4cd6693c1c65ba43bb8970cf909dec378b: Merge tag 'for-upstream-i386' of https://gitlab.com/bonzini/qemu into staging (2024-11-02 16:21:38 +) are available in the Git repository at: https://github.com/kostyanf14/qemu.git tags/qga-pull-2024-11-4 for

Re: [PATCH 05/12] qga: fix -Wsometimes-uninitialized windows warning

2024-10-31 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Thu, Oct 31, 2024 at 6:05 AM Pierrick Bouvier < pierrick.bouv...@linaro.org> wrote: > Reported by clang, but not gcc. > > [5123/5678] Compiling C object qga/qemu-ga.exe.p/commands-windows-ssh.c.obj > FAILED: qga/qemu-ga.exe.p/commands-windo

Re: [PATCH 06/12] qga: fix missing static and prototypes windows warnings

2024-10-31 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Thu, Oct 31, 2024 at 6:05 AM Pierrick Bouvier < pierrick.bouv...@linaro.org> wrote: > Reported by clang++, but not by g++. > > ../qga/vss-win32/provider.cpp:48:6: error: no previous prototype for > function 'LockModule' [-Werror,-

Re: [PATCH] qga: skip bind mounts in fs list

2024-10-28 Thread Konstantin Kostiuk
Hi Jean-Louis, Thanks for your patch. I hope next week, I will test and review this patch. Just a question, did you have a chance to test that this patch fix kernel crash? Best Regards, Konstantin Kostiuk. On Fri, Oct 25, 2024 at 1:06 PM Jean-Louis Dupond wrote: > On 9/10/2024 10:34, J

Re: [PATCH v3 1/4] qemu-ga: 'Null' check for mandatory parameters

2024-10-21 Thread Konstantin Kostiuk
On Mon, Oct 21, 2024 at 7:45 PM Daniel P. Berrangé wrote: > On Mon, Oct 21, 2024 at 09:28:36PM +0800, Dehan Meng wrote: > > sscanf return values are checked and add 'Null' check for > > mandatory parameters. > > > > Signed-off-by: Dehan Meng > > --- > > qga/commands-linux.c | 12 +++- >

Re: [PATCH] qemu-ga: Fix a SIGSEGV on guest-set-time command

2024-10-21 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Fri, Oct 18, 2024 at 1:14 PM Sunil Nimmagadda wrote: > qemu-ga on a NetBSD -current VM terminates with a SIGSEGV upon receiving > 'guest-set-time' command... > > Core was generated by `qemu-ga'. > Program terminated with sign

Re: [PATCH v2 0/4] qemu-ga: Fix some potential issues find by coverity

2024-10-11 Thread Konstantin Kostiuk
add `qemu-ga:` suffix for each commit Best Regards, Konstantin Kostiuk. > Signed-off-by: Dehan Meng > > qga/commands-linux.c | 128 --- > 1 file changed, 59 insertions(+), 69 deletions(-) > > -- > 2.40.1 > >

Re: [PATCH 2/2] qga: Improve error for guest-set-user-password parameter @crypted

2024-09-12 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Wed, Sep 11, 2024 at 4:12 PM Markus Armbruster wrote: > The Windows version of guest-set-user-password rejects argument > "crypted": true with the rather useless "this feature or command is > not currently supported". Improve

Re: [PATCH 1/2] qga/qapi-schema: Drop obsolete note on "unsupported" errors

2024-09-12 Thread Konstantin Kostiuk
Reviewed-by: Konstantin Kostiuk On Wed, Sep 11, 2024 at 4:12 PM Markus Armbruster wrote: > The note talks about "unsupported" errors and QERR_UNSUPPORTED. The > former is vague, and the latter makes sense only in C, not in external > interface documentation. Fortunatel

Re: [PULL v2 25/25] qga/linux: Add new api 'guest-network-get-route'

2024-08-19 Thread Konstantin Kostiuk
On Thu, Aug 15, 2024 at 5:18 PM Peter Maydell wrote: > On Mon, 29 Jul 2024 at 10:35, Peter Maydell > wrote: > > > > On Mon, 29 Jul 2024 at 08:40, Konstantin Kostiuk > wrote: > > > > > > Hi Peter, > > > > > > How to see the full c

Re: [PATCH] qemu-guest-agent: Update the logfile path of qga-fsfreeze-hook.log

2024-08-14 Thread Konstantin Kostiuk
This bug looks specific to the RedHat SELinux configuration. Is this any reason to move LOGFILE except this? Best Regards, Konstantin Kostiuk. On Tue, Aug 13, 2024 at 6:11 AM Dehan Meng wrote: > Since '/var/log/qga-fsfreeze-hook.log' is not included to proper >

Re: [PULL v2 25/25] qga/linux: Add new api 'guest-network-get-route'

2024-07-29 Thread Konstantin Kostiuk
Hi Peter, How to see the full coverity report? In https://gitlab.com/qemu-project/qemu/-/artifacts, I see only job.log Do you expect to fix these errors for the 9.1 release? Best Regards, Konstantin Kostiuk. On Thu, Jul 25, 2024 at 1:12 PM Peter Maydell wrote: > On Tue, 23 Jul 2024 at 08

[PULL v2 03/25] qga: move linux suspend command impls to commands-linux.c

2024-07-23 Thread Konstantin Kostiuk
From: Daniel P. Berrangé The qmp_guest_suspend_{disk,ram,hybrid} command impls in commands-posix.c are surrounded by '#ifdef __linux__' so should instead live in commands-linux.c Reviewed-by: Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk

[PULL v2 02/25] qga: move linux vcpu command impls to commands-linux.c

2024-07-23 Thread Konstantin Kostiuk
From: Daniel P. Berrangé The qmp_guest_set_vcpus and qmp_guest_get_vcpus command impls in commands-posix.c are surrounded by '#ifdef __linux__' so should instead live in commands-linux.c Reviewed-by: Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstant

[PULL v2 01/25] qga: drop blocking of guest-get-memory-block-size command

2024-07-23 Thread Konstantin Kostiuk
From: Daniel P. Berrangé This command has never existed in tree, since it was renamed to guest-get-memory-block-info before being merged. Reviewed-by: Manos Pitsidianakis Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P. Berrangé Reviewed-by: Philippe Mathieu-Daudé Message-ID

[PULL v2 09/25] qga: conditionalize schema for commands unsupported on non-Linux POSIX

2024-07-23 Thread Konstantin Kostiuk
ot;: "The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P. Berrangé Message-ID: &

[PULL v2 07/25] qga: move CONFIG_FSFREEZE/TRIM to be meson defined options

2024-07-23 Thread Konstantin Kostiuk
From: Daniel P. Berrangé Defining these at the meson level allows them to be used a conditional tests in the QAPI schemas. Signed-off-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240712132459.3974109-8-berra...@redhat.com>

[PULL v2 16/25] qga: conditionalize schema for commands requiring utmpx

2024-07-23 Thread Konstantin Kostiuk
und", "desc": "The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P

[PULL v2 05/25] qga: move linux disk/cpu stats command impls to commands-linux.c

2024-07-23 Thread Konstantin Kostiuk
Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P. Berrangé Reviewed-by: Manos Pitsidianakis Message-ID: <20240712132459.3974109-6-berra...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/commands-linux.c | 195

[PULL v2 17/25] qga: conditionalize schema for commands not supported on other UNIX

2024-07-23 Thread Konstantin Kostiuk
ot;The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P. Berrangé Reviewed-by: Manos Pitsidiana

[PULL v2 06/25] qga: move linux memory block command impls to commands-linux.c

2024-07-23 Thread Konstantin Kostiuk
__linux__". Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P. Berrangé Reviewed-by: Manos Pitsidianakis Message-ID: <20240712132459.3974109-7-berra...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/commands-linux.c | 308 +++

[PULL v2 23/25] qga/commands-posix: Make ga_wait_child() return boolean

2024-07-23 Thread Konstantin Kostiuk
From: Zhao Liu Make ga_wait_child() return boolean and check the returned boolean in ga_run_command() instead of dereferencing @errp. Cc: Michael Roth Cc: Konstantin Kostiuk Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Zhao Liu Reviewed-by: Konstantin Kostiuk Message-ID

[PULL v2 22/25] qga: centralize logic for disabling/enabling commands

2024-07-23 Thread Konstantin Kostiuk
s there is no compelling technical reason to prevent concurrent setting of both the allow and block lists, so this flawed restriction is removed. Signed-off-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Message-ID: <20240712132459.3974109-23-berra...@redhat.com> Signed-off-by: Ko

[PULL v2 18/25] qga: don't disable fsfreeze commands if vss_init fails

2024-07-23 Thread Konstantin Kostiuk
Reviewed-by: Manos Pitsidianakis Signed-off-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240712132459.3974109-19-berra...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/commands-win32.c | 18 +++--- qga/main.

[PULL v2 11/25] qga: conditionalize schema for commands requiring linux/win32

2024-07-23 Thread Konstantin Kostiuk
col reference now documents what conditions enable use of the command. Signed-off-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Manos Pitsidianakis Message-ID: <20240712132459.3974109-12-berra...@redhat.com> Signed-off-by:

[PULL v2 13/25] qga: conditionalize schema for commands requiring fsfreeze

2024-07-23 Thread Konstantin Kostiuk
andNotFound", "desc": "The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Da

[PULL v2 24/25] guest-agent: document allow-rpcs in config file section

2024-07-23 Thread Konstantin Kostiuk
not `allow-rpcs` seems like being a potential source of confusion; and as it's cheap to add let's just do so. Signed-off-by: Thomas Lamprecht Reviewed-by: Konstantin Kostiuk Message-ID: <20240718140407.444160-1-t.lampre...@proxmox.com> Signed-off-by: Konstantin Kostiuk --- docs/in

[PULL v2 21/25] qga: allow configuration file path via the cli

2024-07-23 Thread Konstantin Kostiuk
ommand line argument approach. This requires that we parse the comamnd line twice, since we want the command line arguments to take priority over the configuration file settings in general. Signed-off-by: Daniel P. Berrangé Reviewed-by: Konstantin Kostiuk Message-ID: <20240712132459.3974109

[PULL v2 14/25] qga: conditionalize schema for commands requiring fstrim

2024-07-23 Thread Konstantin Kostiuk
uot;CommandNotFound", "desc": "The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Da

[PULL v2 15/25] qga: conditionalize schema for commands requiring libudev

2024-07-23 Thread Konstantin Kostiuk
otFound", "desc": "The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P

[PULL v2 04/25] qga: move linux fs/disk command impls to commands-linux.c

2024-07-23 Thread Konstantin Kostiuk
From: Daniel P. Berrangé The qmp_guest_{fstrim, get_fsinfo, get_disks} command impls in commands-posix.c are surrounded by '#ifdef __linux__' so should instead live in commands-linux.c Reviewed-by: Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kosti

[PULL v2 25/25] qga/linux: Add new api 'guest-network-get-route'

2024-07-23 Thread Konstantin Kostiuk
From: Dehan Meng The Route information of the Linux VM needs to be used by administrators and users when debugging network problems and troubleshooting. Signed-off-by: Dehan Meng Reviewed-by: Konstantin Kostiuk Message-ID: <20240613092802.346246-2-dem...@redhat.com> Signed-off-by: Kons

[PULL v2 10/25] qga: conditionalize schema for commands requiring getifaddrs

2024-07-23 Thread Konstantin Kostiuk
otFound", "desc": "The command FOO has not been found"} This has the additional benefit that the QGA protocol reference now documents what conditions enable use of the command. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P

[PULL v2 20/25] qga: remove pointless 'blockrpcs_key' variable

2024-07-23 Thread Konstantin Kostiuk
deprecated 'blacklist' argument / config key Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P. Berrangé Message-ID: <20240712132459.3974109-21-berra...@redhat.com> Signed-off-by: Konstantin Kostiuk --- qga/main.c | 7 +++ 1

[PULL v2 19/25] qga: move declare of QGAConfig struct to top of file

2024-07-23 Thread Konstantin Kostiuk
From: Daniel P. Berrangé It is referenced by QGAState already, and it is clearer to declare all data types at the top of the file, rather than have them mixed with code later. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Konstantin Kostiuk Signed-off-by: Daniel P. Berrangé Reviewed-by

[PULL v2 08/25] qga: conditionalize schema for commands unsupported on Windows

2024-07-23 Thread Konstantin Kostiuk
t;desc": "this feature or command is not currently supported"} to {"class": "CommandNotFound", "desc": "The command FOO has not been found"} The final additional benefit is that the QGA protocol reference now documents what conditions e

  1   2   3   4   5   6   >