Re: [Qemu-devel] [PATCH] add 1394 OHCI device

2016-04-04 Thread Sameeh Jubran
ack trace". Moreover I've successfully viewed live trace output from virtio-net driver while running Iperf test and ping. Tested-by: Sameeh Jubran -- Original Message -- From: "Ladi Prosek" To: qemu-devel@nongnu.org Cc: peter.mayd...@linaro.org; "Ladi Prosek&quo

[Qemu-devel] [PATCH 1/2] e1000: Fixing interrupts pace.

2016-03-18 Thread Sameeh Jubran
n the delay should be set to the minimum delay possible which is 500. This can be calculated easily as follows: Interval = 10^9 / (7813 * 256) = 500. Signed-off-by: Sameeh Jubran --- hw/net/e1000.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 0387f

[Qemu-devel] [PATCH 0/2] e1000: Introducing an upper bound of interrupts

2016-03-19 Thread Sameeh Jubran
nable/disable to the device the guest hangs when the device is being disabled. Actual results: Guest hang after click OK button. Expected results: Device is disabled. After applying the patch the guest no longer hangs, and an Iperf test ran successfully. Sameeh Jubran (2): e1000: Fixing interrupts

[Qemu-devel] [PATCH 2/2] Revert "e1000: fix hang of win2k12 shutdown with flood ping"

2016-03-19 Thread Sameeh Jubran
This reverts commit 9596ef7c7b8528bedb240792ea1fb598543ad3c4. This workaround in order to fix endless interrupts is no longer needed because it was superseded by the previous patch (e1000: Fixing interrupt pace). Signed-off-by: Sameeh Jubran --- hw/net/e1000.c | 5 - 1 file changed, 5

Re: [Qemu-devel] [PATCH 0/2] e1000: Introducing an upper bound of interrupts

2016-03-21 Thread Sameeh Jubran
ang wrote: > > > On 03/17/2016 03:37 PM, Sameeh Jubran wrote: > > This patch series introduces an upper bound for the number of interrupts > > per second. This feature is supported by the real hardware, however up > > until now it wasn't implemented in e1000. Th

[Qemu-devel] [PATCH] e1000: Removing unnecessary if statement

2016-05-28 Thread Sameeh Jubran
Since mit_delay can never be 0 this if statement is superfluous. Signed-off-by: Sameeh Jubran --- hw/net/e1000.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index 8e79b55..eb903a9 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c

Re: [Qemu-devel] [PATCH 1/2] e1000: Fixing interrupts pace.

2016-05-15 Thread Sameeh Jubran
7;mit_timer' wouldn't be > armed. > > The new logic forces mit_delay to be set to 500, even if it was 0 > ("unset"). > > Which approach is correct: > - Either the 'if (mit_delay)' is now superflous, > - Or, do we need to keep the "uns

Re: [Qemu-devel] [PATCH 1/2] e1000: Fixing interrupts pace.

2016-05-17 Thread Sameeh Jubran
; > > if (mit_delay) { > > > > s->mit_timer_on = 1; > > > > timer_mod(s->mit_timer, > > The existing 'if (mit_delay)' is now superflous, since always true, > hence can be removed. > -- Respectfully, *Sameeh Jubran* *Mobile: +972 054-2509642* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>Junior Software Engineer @ Daynix <http://www.daynix.com>.*

Re: [Qemu-devel] [PATCH v2 1/1] qga-win: fix installation on localized windows

2017-06-20 Thread Sameeh Jubran
This patch have been waiting too long for a review, Can someone please review it!! On Thu, Jun 1, 2017 at 3:07 PM, Sameeh Jubran wrote: > Can someone review this patch please? > > On Thu, May 25, 2017 at 2:06 PM, Sameeh Jubran wrote: > >> Ping >> >> On Sun, M

[Qemu-devel] [PATCH v3] qga-win: Fix a bug where qemu-ga service is stuck during stop operation

2017-04-11 Thread Sameeh Jubran
for freeze is 10 seconds, so we should wait for the timeout, thaw the file system and quit. Signed-off-by: Sameeh Jubran --- qga/main.c | 23 +++ qga/vss-win32.h | 1 + qga/vss-win32/vss-common.h | 11 +-- qga/vss-win32/vss-handles.h | 14

[Qemu-devel] Windows 10 IoT Core Raspberry Pi 2 on top of Qemu

2017-04-11 Thread Sameeh Jubran
re is stuck in an infinite loop and the other cores are halted! Anyone else faced this issue? Is there any version of Windows 10 IoT Core ARM that can run on top of Qemu? -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ D

[Qemu-devel] [PATCH] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply

2017-04-11 Thread Sameeh Jubran
e' is missing entirely from the reply. This causes errors in libvirt which is expecting the reply to be compliant with the schema docs. BZ#1438735: https://bugzilla.redhat.com/show_bug.cgi?id=1438735 Signed-off-by: Sameeh Jubran --- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+),

Re: [Qemu-devel] [PATCH v2 1/1] qga-win: fix installation on localized windows

2017-05-14 Thread Sameeh Jubran
Reviewed-by: Sameeh Jubran On Thu, Apr 27, 2017 at 4:21 PM, Daniel Rempel wrote: > Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1357789 > Replace hardcoded user and group names ("Administrators", "SYSTEM") with > the ones acquired from system. Windows use

[Qemu-devel] [PATCH] e1000e: Fix a bug where guest hangs upon migration

2017-05-17 Thread Sameeh Jubran
: 0xa4) 27563@1494850819.412441:e1000e_irq_pending_interrupts ICR PENDING: 0x0 (ICR: 0x815000c2, IMS: 0xa4) 27563@1494850819.412998:e1000e_irq_pending_interrupts ICR PENDING: 0x100 (ICR: 0x815000c2, IMS: 0x1a4) This commit solves: https://bugzilla.redhat.com/show_bug.cgi?id=1447935 htt

[Qemu-devel] qemu-ga static compilation

2017-03-14 Thread Sameeh Jubran
is? Do you have any idea why is this happening? -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ Daynix <http://www.daynix.com>.*

Re: [Qemu-devel] qemu-ga static compilation

2017-03-20 Thread Sameeh Jubran
ping. On Tue, Mar 14, 2017 at 6:51 PM, Sameeh Jubran wrote: > Hi all, > > I am trying to compile qemu-ga for Windows statically using the following > commands: > > ./configure --disable-docs --target-list=x86_64-softmmu > --cross-prefix=x86_64-w64-mingw32- --static --e

Re: [Qemu-devel] qemu-ga static compilation

2017-03-20 Thread Sameeh Jubran
On Mon, Mar 20, 2017 at 3:57 PM, Stefan Hajnoczi wrote: > On Tue, Mar 14, 2017 at 06:51:37PM +0200, Sameeh Jubran wrote: > > I am trying to compile qemu-ga for Windows statically using the following > > commands: > > > > ./configure --disable-docs --target-list=x86_64

[Qemu-devel] [PATCH 0/5] Fix qemu-ga's behaviour on Windows

2017-07-05 Thread Sameeh Jubran
From: Sameeh Jubran This patch series fixes qemu-ga's main service behaviour on Windows by listening to the virtio-serial device's events. For more info on why this series is needed checkout the commit message of the third patch and the following bugzilla: https://bugzilla.

[Qemu-devel] [PATCH 2/5] qga-win: service-win32: Add start_service and stop_service functions

2017-07-05 Thread Sameeh Jubran
From: Sameeh Jubran This commits adds two functions which handle service's start and stop process in Windows. Signed-off-by: Sameeh Jubran --- qga/service-win32.c | 52 qga/service-win32.h | 2 ++ 2 files changed, 54 insertions(+)

[Qemu-devel] [PATCH 1/5] Makefile: clean: Clean exe files

2017-07-05 Thread Sameeh Jubran
From: Sameeh Jubran Clean exe files such as qemu-ga.exe Signed-off-by: Sameeh Jubran --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 16a0430..22d29d6 100644 --- a/Makefile +++ b/Makefile @@ -487,6 +487,7 @@ clean: rm -f config.mak op-i386.h

[Qemu-devel] [PATCH 4/5] qga-win: Add qga-serial-listener to msi installer

2017-07-05 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- qga/installer/qemu-ga.wxs | 24 1 file changed, 24 insertions(+) diff --git a/qga/installer/qemu-ga.wxs b/qga/installer/qemu-ga.wxs index fa2260c..40b7a7b 100644 --- a/qga/installer/qemu-ga.wxs +++ b/qga/installer

[Qemu-devel] [PATCH 5/5] qga-win: service-win32: Use get_service function

2017-07-05 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- qga/service-win32.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/qga/service-win32.c b/qga/service-win32.c index 861f9fc..c17e0eb 100644 --- a/qga/service-win32.c +++ b/qga/service-win32.c

[Qemu-devel] [PATCH 3/5] qga-win: Add serial listener service

2017-07-05 Thread Sameeh Jubran
From: Sameeh Jubran Currently on Windows whenever the qemu-ga's service doesn't find the virtio-serial it terminates. This commit addresses this issue by adding a new listener service which registers for notifications of the virtio-port-serial device handle the qemu-ga's serv

[Qemu-devel] [Qemu-GA-Win PATCH v3] qga-win: fix installation on localized windows

2017-07-05 Thread Sameeh Jubran
ndows has Well-known SIDs for "Administrators" group and "SYSTEM" user so they were used to identify required users and groups. Well-known SIDs: https://support.microsoft.com/en-us/help/243330/well-known-security-identifiers-in-windows-operating-systems Signed-off-by: Dan

[Qemu-devel] [Qemu-GA-Win PATCH v3] qemu-ga-win localization fix

2017-07-05 Thread Sameeh Jubran
From: Sameeh Jubran This version doesn't differ from v2 at all, v2 have been waiting too long for a review, so I'm resending it again. Daniel Rempel (1): qga-win: fix installation on localized windows qga/vss-win32/install.cpp | 35 +-- 1 file c

Re: [Qemu-devel] [PATCH] e1000e: Fix a bug where guest hangs upon migration

2017-05-19 Thread Sameeh Jubran
On Fri, May 19, 2017 at 9:25 AM, Jason Wang wrote: > > > On 2017年05月17日 19:46, Sameeh Jubran wrote: > >> The bug was caused by the "receive overrun" (bit #6 of the ICR register) >> interrupt >> which would be triggered post migration in a heavy traffic env

Re: [Qemu-devel] [PATCH] e1000e: Fix a bug where guest hangs upon migration

2017-05-22 Thread Sameeh Jubran
On Mon, May 22, 2017 at 5:46 AM, Jason Wang wrote: > > > On 2017年05月19日 22:04, Sameeh Jubran wrote: > >> On Fri, May 19, 2017 at 9:25 AM, Jason Wang wrote: >> >> >>> On 2017年05月17日 19:46, Sameeh Jubran wrote: >>> >>> The bug was ca

[Qemu-devel] [PATCH v2] e1000e: Fix ICR "Other" causes clear logic

2017-05-22 Thread Sameeh Jubran
63@1494850819.412998:e1000e_irq_pending_interrupts ICR PENDING: 0x100 (ICR: 0x815000c2, IMS: 0x1a4) * This bug behaviour wasn't observed with the Linux driver. This commit solves: https://bugzilla.redhat.com/show_bug.cgi?id=1447935 https://bugzilla.redhat.com/show_bug.cgi?id=1449490 Signe

Re: [Qemu-devel] [PATCH v2 1/1] qga-win: fix installation on localized windows

2017-05-25 Thread Sameeh Jubran
Ping On Sun, May 14, 2017 at 3:53 PM, Sameeh Jubran wrote: > Reviewed-by: Sameeh Jubran > > On Thu, Apr 27, 2017 at 4:21 PM, Daniel Rempel wrote: > >> Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1357789 >> Replace hardcoded user and group names ("Administr

Re: [Qemu-devel] [PATCH v2 1/1] qga-win: fix installation on localized windows

2017-06-01 Thread Sameeh Jubran
Can someone review this patch please? On Thu, May 25, 2017 at 2:06 PM, Sameeh Jubran wrote: > Ping > > On Sun, May 14, 2017 at 3:53 PM, Sameeh Jubran wrote: > >> Reviewed-by: Sameeh Jubran >> >> On Thu, Apr 27, 2017 at 4:21 PM, Daniel Rempel wrote: >>

Re: [Qemu-devel] [PATCH 0/3]

2017-08-22 Thread Sameeh Jubran
Ping. On Sun, Aug 13, 2017 at 6:58 PM, Sameeh Jubran wrote: > From: Sameeh Jubran > > This series fixes qemu-ga's behaviour upon facing a missing serial/serial > driver by listening to the serial device's events. > > For more info on why this series is needed chec

Re: [Qemu-devel] [PATCH] qga-win: Updating guest_set_time action

2017-08-22 Thread Sameeh Jubran
Reviewed-by: Sameeh Jubran On Tue, Aug 22, 2017 at 3:20 PM, Bishara AbuHattoum wrote: > At the moment, Windows libraries don't provide a way to access > RTC, so, a workaround is to use the Windows w32tm command to > resync the time. > Related bugzilla: https://bu

Re: [Qemu-devel] [PATCH v2] qga-win: Updating guest_set_time action

2017-08-22 Thread Sameeh Jubran
Reviewed-by: Sameeh Jubran On Tue, Aug 22, 2017 at 4:55 PM, Bishara AbuHattoum wrote: > At the moment, Windows libraries don't provide a way to access > RTC, so, a workaround is to use the Windows w32tm command to > resync the time. > Related bugzilla: https://bu

Re: [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?

2017-08-23 Thread Sameeh Jubran
qga.sock,server,nowait,id= > qga0 > >>> -device virtio-serial -device virtserialport,chardev=qga0,na > >>> me=org.qemu.guest_agent.0 > >> > >> > >> But When I use socat to send command (https://wiki.qemu.org/Feature > >> s/GuestAgent), it blocked. Why and how to fix this? Thank you~ > >> > > > > > -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ Daynix <http://www.daynix.com>.*

Re: [Qemu-devel] [QGA] Bug of qga?

2017-08-29 Thread Sameeh Jubran
>> sock.settimeout(20) > >>>> sock.connect(vm_qga_sockpath) > >>>> sock.send(cmd) > >>>> while True: > >>>> res = sock.recv(1024) > >>>> if len(res): > >>>> break > >>>> except Exception as e: > >>>> res = -1 > >>>> finally: > >>>> sock.settimeout(None) > >>>> sock.close() > >>> > >>> > >> > > > -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ Daynix <http://www.daynix.com>.*

Re: [Qemu-devel] [PATCH 0/5] Fix qemu-ga's behaviour on Windows

2017-07-22 Thread Sameeh Jubran
Ping. On Wed, Jul 5, 2017 at 10:54 AM, Sameeh Jubran wrote: > From: Sameeh Jubran > > This patch series fixes qemu-ga's main service behaviour on Windows > by listening to the virtio-serial device's events. > > For more info on why this series is needed checkout

Re: [Qemu-devel] [PATCH] vfio/pci-quirks: Set non-zero GMS memory size for IGD

2017-07-24 Thread Sameeh Jubran
uot;, VFIOPCIDevice, igd_gms, 0), > +DEFINE_PROP_UINT32("x-igd-gms", VFIOPCIDevice, igd_gms, 1), > /* > * TODO - support passed fds... is this necessary? > * DEFINE_PROP_STRING("vfiofd", VFIOPCIDevice, vfiofd_name), > -- > 2.9.4 > > > -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ Daynix <http://www.daynix.com>.*

[Qemu-devel] [PATCH 1/3] qga: Channel: Add functions for checking serial status

2017-08-13 Thread Sameeh Jubran
From: Sameeh Jubran This commit adds functions to check if the serial is connected/disconnected or else if it has been attached or detached. Signed-off-by: Sameeh Jubran --- qga/channel-posix.c | 54 +++ qga/channel-win32.c | 60

[Qemu-devel] [PATCH 0/3]

2017-08-13 Thread Sameeh Jubran
From: Sameeh Jubran This series fixes qemu-ga's behaviour upon facing a missing serial/serial driver by listening to the serial device's events. For more info on why this series is needed checkout the commit message of the third patch and the following bugzilla: https://bugzilla.

[Qemu-devel] [PATCH 2/3] qga: main: make qga config and socket activation global

2017-08-13 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- qga/main.c | 44 +++- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/qga/main.c b/qga/main.c index 1b381d0..cf312b9 100644 --- a/qga/main.c +++ b/qga/main.c @@ -92,7 +92,28 @@ struct

[Qemu-devel] [PATCH 3/3] qga: Prevent qemu-ga exit if serial doesn't exist

2017-08-13 Thread Sameeh Jubran
From: Sameeh Jubran Currently whenever the qemu-ga's service doesn't find the virtio-serial it terminates. This commit addresses this issue by listening to the serial events by registering for notifications for the chosen serial and it handles channel initialization accordingily.

Re: [Qemu-devel] [PATCH] qga-win: VSS: Handle VSS_E_PROVIDER_ALREADY_REGISTERED error

2017-11-30 Thread Sameeh Jubran
On Wed, Nov 29, 2017 at 1:17 AM, Michael Roth wrote: > Quoting Sameeh Jubran (2017-11-22 05:30:14) > > From: Sameeh Jubran > > > > We can get VSS_E_PROVIDER_ALREADY_REGISTERED error if for some > > reason the uninstall of qemu-ga didn't complete successfully

[Qemu-devel] [PATCH] qga-win: VSS: Handle VSS_E_PROVIDER_ALREADY_REGISTERED error

2017-11-22 Thread Sameeh Jubran
From: Sameeh Jubran We can get VSS_E_PROVIDER_ALREADY_REGISTERED error if for some reason the uninstall of qemu-ga didn't complete successfully. In this case we can try to unregister the component service and attempt to register it again. Signed-off-by: Sameeh Jubran --- qga/vss-

Re: [Qemu-devel] [PATCH 0/3]

2018-01-22 Thread Sameeh Jubran
Ping. On Fri, Oct 27, 2017 at 10:08 AM, Sameeh Jubran wrote: > > > On Fri, Oct 27, 2017 at 2:51 AM, Michael Roth > wrote: > >> Quoting Sameeh Jubran (2017-08-13 10:58:46) >> > From: Sameeh Jubran >> > >> > This series fixes qemu-ga&#x

Re: [Qemu-devel] qemu-ga static compilation

2017-03-21 Thread Sameeh Jubran
Just to make it clear, Stefan you are going to send a patch right? On Mon, Mar 20, 2017 at 5:44 PM, Sameeh Jubran wrote: > > > On Mon, Mar 20, 2017 at 3:57 PM, Stefan Hajnoczi > wrote: > >> On Tue, Mar 14, 2017 at 06:51:37PM +0200, Sameeh Jubran wrote: >> > I am

[Qemu-devel] [PATCH] Fix Event Viewer errors caused by qemu-ga

2017-03-21 Thread Sameeh Jubran
ctivity on the volume by an application or a system service. Try again later when activity on the volume is reduced. Signed-off-by: Sameeh Jubran --- qga/vss-win32/provider.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qga/vss-win32/provider.cpp b/qga/vss-win3

[Qemu-devel] [PATCH qemu-ga] Start VSS Provider after install

2017-03-21 Thread Sameeh Jubran
Signed-off-by: Sameeh Jubran --- qga/vss-win32/install.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qga/vss-win32/install.cpp b/qga/vss-win32/install.cpp index f4160a3..7e38332 100644 --- a/qga/vss-win32/install.cpp +++ b/qga/vss-win32/install.cpp @@ -307,6 +307,7 @@ STDAPI

[Qemu-devel] [PATCH qemu-ga] Fix a bug where qemu-ga service is stuck during stop operation

2017-03-21 Thread Sameeh Jubran
for freeze is 10 seconds, so we should wait for the timeout, thaw the file system and quit. Signed-off-by: Sameeh Jubran --- qga/main.c | 20 qga/vss-win32.h| 1 + qga/vss-win32/vss-common.h | 5 + 3 files changed, 26 insertions(+) diff --git

[Qemu-devel] [PATCH qemu-ga] qemu-ga: Don't display errors to the user on thaw command

2017-03-21 Thread Sameeh Jubran
Errors that are related to ur inner implementation for the thaw command shouldn't be displayed to the user. Signed-off-by: Sameeh Jubran --- qga/vss-win32/requester.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qga/vss-win32/requester.cpp b/qga/vss-

Re: [Qemu-devel] [PATCH] Fix Event Viewer errors caused by qemu-ga

2017-03-22 Thread Sameeh Jubran
On Tue, Mar 21, 2017 at 6:09 PM, Michael Roth wrote: > Quoting Sameeh Jubran (2017-03-21 05:49:52) > > When the command "guest-fsfreeze-freeze" is executed it causes > > the VSS service to log the errors below in the Event Viewer. > > > > These errors are

Re: [Qemu-devel] [PATCH qemu-ga] Start VSS Provider after install

2017-03-22 Thread Sameeh Jubran
On Tue, Mar 21, 2017 at 6:15 PM, Michael Roth wrote: > Quoting Sameeh Jubran (2017-03-21 07:03:26) > > Signed-off-by: Sameeh Jubran > > What happens without this patch? Fresh installs don't report the > fsfreeze interface as available? > It solves a bug (h

[Qemu-devel] [PATCH qemu-ga] qemu-ga: Make QGA VSS provider service run only when needed

2017-03-22 Thread Sameeh Jubran
Currently the service runs in background on boot even though it is not needed and once it is running it never stops. The service needs to be running only during freeze operation and it should be stopped after executing thaw. Signed-off-by: Sameeh Jubran --- qga/vss-win32/install.cpp | 28

[Qemu-devel] [PATCH qemu-ga] qga: Make qemu-ga compile statically for Windows

2017-03-22 Thread Sameeh Jubran
g file for glib as it doesn't define GLIB_STATIC_COMPILATION for pkg-config --static. Signed-off-by: Stefan Hajnoczi Signed-off-by: Sameeh Jubran --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index b9a30cf..6f7b460 100755 --- a/confi

Re: [Qemu-devel] [PATCH qemu-ga] qga: Make qemu-ga compile statically for Windows

2017-03-22 Thread Sameeh Jubran
On Wed, Mar 22, 2017 at 3:29 PM, Marc-André Lureau < marcandre.lur...@gmail.com> wrote: > Hi > > On Wed, Mar 22, 2017 at 5:11 PM Sameeh Jubran wrote: > >> Attempting to compile qemu-ga statically as follows for Windows causes >> the following error: >>

Re: [Qemu-devel] [PATCH qemu-ga] qga: Make qemu-ga compile statically for Windows

2017-03-22 Thread Sameeh Jubran
On Wed, Mar 22, 2017 at 3:21 PM, Peter Maydell wrote: > On 22 March 2017 at 13:09, Sameeh Jubran wrote: > > Attempting to compile qemu-ga statically as follows for Windows causes > > the following error: > > > > Compilation: > > ./configure --disable-

[Qemu-devel] [PATCH qemu-ga v2] qga: Make qemu-ga compile statically for Windows

2017-03-23 Thread Sameeh Jubran
g file for glib as it doesn't define GLIB_STATIC_COMPILATION for pkg-config --static. Signed-off-by: Stefan Hajnoczi Signed-off-by: Sameeh Jubran --- configure | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index b9a30cf..8210494 100755 --- a/confi

Re: [Qemu-devel] [PATCH v2] qga: Add `guest-get-timezone` command

2017-03-23 Thread sameeh jubran
I have tested the patch on Windows 2012 R2 and it seems to be working good. Please see some comments inline. On 3/22/2017 7:16 PM, Vinzenz 'evilissimo' Feenstra wrote: From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. Th

[Qemu-devel] [PATCH qemu-ga v2] qemu-ga: Make QGA VSS provider service run only when needed

2017-03-23 Thread Sameeh Jubran
Currently the service runs in background on boot even though it is not needed and once it is running it never stops. The service needs to be running only during freeze operation and it should be stopped after executing thaw. Signed-off-by: Sameeh Jubran --- qga/vss-win32/install.cpp | 28

[Qemu-devel] [PATCH qemu-ga v2] Make QGA VSS provider service run only when needed

2017-03-23 Thread Sameeh Jubran
Difference from v1: Added missing install.h file Sameeh Jubran (1): qemu-ga: Make QGA VSS provider service run only when needed qga/vss-win32/install.cpp | 28 ++-- qga/vss-win32/install.h | 20 qga/vss-win32/requester.cpp | 2 ++ 3 files

Re: [Qemu-devel] [PATCH qemu-ga v2] qga: Make qemu-ga compile statically for Windows

2017-03-26 Thread Sameeh Jubran
On Thu, Mar 23, 2017 at 9:21 PM, Stefan Hajnoczi wrote: > On Thu, Mar 23, 2017 at 11:22:11AM +0200, Sameeh Jubran wrote: > > Attempting to compile qemu-ga statically as follows for Windows causes > > the following error: > > > > Compilation: > > ./confi

[Qemu-devel] [PATCH qemu-ga v3] qga: Make qemu-ga compile statically for Windows

2017-03-26 Thread Sameeh Jubran
g file for glib as it doesn't define GLIB_STATIC_COMPILATION for pkg-config --static. Signed-off-by: Sameeh Jubran Reviewed-by: Stefan Hajnoczi --- configure | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index b9a30cf..8210494 100755 --- a/configure +++ b/

Re: [Qemu-devel] [PATCH v1] qga: Add 'guest-get-fqdn' command

2017-03-27 Thread Sameeh Jubran
> + > + > +## > +# @GuestFQDN: > +# @fqdn: Fully qualified domain name of the guest OS > +# > +# Since: 2.10 > +## > +{ 'struct': 'GuestFQDN', > + 'data': { 'fqdn': 'str' } } > + > + > +## > +# @guest-get-fqdn: > +# > +# Request the FQDN (Fully Qualified Domain Name) of the guest operating > system > +# > +# Returns: FQDN on success > +# > +# Since: 2.10 > +## > +{ 'command': 'guest-get-fqdn', > + 'returns': 'GuestFQDN' } > + > -- > 2.9.3 > > > -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ Daynix <http://www.daynix.com>.*

Re: [Qemu-devel] [PATCH qemu-ga v2] qemu-ga: Make QGA VSS provider service run only when needed

2017-04-02 Thread Sameeh Jubran
Ping. On Thu, Mar 23, 2017 at 7:26 PM, Sameeh Jubran wrote: > Currently the service runs in background on boot even though it is not > needed and once it is running it never stops. The service needs to be > running only during freeze operation and it should be stopped after > ex

Re: [Qemu-devel] [PATCH] Fix Event Viewer errors caused by qemu-ga

2017-04-02 Thread Sameeh Jubran
Ping. On Wed, Mar 22, 2017 at 11:14 AM, Sameeh Jubran wrote: > > > On Tue, Mar 21, 2017 at 6:09 PM, Michael Roth > wrote: > >> Quoting Sameeh Jubran (2017-03-21 05:49:52) >> > When the command "guest-fsfreeze-freeze" is executed it causes >> &g

Re: [Qemu-devel] [PATCH qemu-ga] Fix a bug where qemu-ga service is stuck during stop operation

2017-04-02 Thread Sameeh Jubran
Ping. On Tue, Mar 21, 2017 at 4:59 PM, Sameeh Jubran wrote: > After triggering a freeze command without any following thaw command, > qemu-ga will not respond to stop operation. This behaviour is wanted on > Linux > as there is no time limit for a freeze command and we wan

Re: [Qemu-devel] [PATCH qemu-ga] qemu-ga: Don't display errors to the user on thaw command

2017-04-02 Thread Sameeh Jubran
Ping. On Tue, Mar 21, 2017 at 5:14 PM, Sameeh Jubran wrote: > Errors that are related to ur inner implementation for the thaw command > shouldn't be displayed to the user. > > Signed-off-by: Sameeh Jubran > --- > qga/vss-win32/requester.cpp | 8 > 1 file c

Re: [Qemu-devel] [PATCH v5] qga: Add `guest-get-timezone` command

2017-04-04 Thread Sameeh Jubran
I have tested the patch on Windows 2012 R2 Reviewed-by: Sameeh Jubran Tested-by: Sameeh Jubran On Thu, Mar 23, 2017 at 2:39 PM, Vinzenz 'evilissimo' Feenstra < vfeen...@redhat.com> wrote: > From: Vinzenz Feenstra > > Adds a new command `guest-get-timezone

[Qemu-devel] [PATCH v2] qga-win: Fix a bug where qemu-ga service is stuck during stop operation

2017-04-05 Thread Sameeh Jubran
for freeze is 10 seconds, so we should wait for the timeout, thaw the file system and quit. Signed-off-by: Sameeh Jubran --- qga/main.c | 22 ++ qga/vss-win32.h | 1 + qga/vss-win32/vss-common.h | 11 +-- qga/vss-win32/vss-handles.h | 14

[Qemu-devel] [PATCH v2] qga-win: Fix Event Viewer errors caused by qemu-ga

2017-04-05 Thread Sameeh Jubran
x80004004, Operation aborted. Signed-off-by: Sameeh Jubran --- qga/vss-win32/provider.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/qga/vss-win32/provider.cpp b/qga/vss-win32/provider.cpp index ef94669..72d8b0e 100644 --- a/qga/vss-win32/provider.cpp +++ b/qga/vss-win32/provider.

Re: [Qemu-devel] [PATCH qemu-ga] qemu-ga: Don't display errors to the user on thaw command

2017-04-05 Thread Sameeh Jubran
On Wed, Apr 5, 2017 at 1:55 AM, Michael Roth wrote: > Quoting Sameeh Jubran (2017-03-21 09:14:35) > > Errors that are related to ur inner implementation for the thaw command > > shouldn't be displayed to the user. > > > > Signed-off-by: Sameeh Jubran > > --

[Qemu-devel] qga-win: Build errors when building with vss support

2018-11-13 Thread Sameeh Jubran
e error was caused by the following commit: https://github.com/qemu/qemu/commit/3ebee3b191e755d3f7311a6a62eea5c9628b221b What do you think is the best approach to resolve this? -- Respectfully, Sameeh Jubran Linkedin Software Engineer @ Daynix.

Re: [Qemu-devel] Hotplug handler

2018-10-08 Thread Sameeh Jubran
Thanks for your help, turns out that the hotlpug is set by piix4 after the devices are realized. On Mon, Oct 8, 2018 at 11:28 AM Igor Mammedov wrote: > > On Sun, 7 Oct 2018 12:52:11 +0300 > Sameeh Jubran wrote: > > > This is the command line. All of the devices are wired

[Qemu-devel] [RFC 2/2] virtio-net: Implement VIRTIO_NET_F_STANDBY feature

2018-10-25 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- hw/net/virtio-net.c| 25 + include/hw/virtio/virtio-net.h | 5 + 2 files changed, 30 insertions(+) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index f154756e85..f478445cbd 100644 --- a/hw

[Qemu-devel] [RFC 0/2] Attempt to implement the standby feature for assigned network devices

2018-10-25 Thread Sameeh Jubran
From: Sameeh Jubran Hi all, Background: There has been a few attempts to implement the standby feature for vfio assigned devices which aims to enable the migration of such devices. This is another attempt. The series implements an infrastructure for hiding devices from the bus upon boot. What

[Qemu-devel] [RFC 1/2] qdev/qbus: Add hidden device support

2018-10-25 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- hw/core/qdev.c | 48 +++--- hw/pci/pci.c | 1 + include/hw/pci/pci.h | 2 ++ include/hw/qdev-core.h | 11 +++- qdev-monitor.c | 58 +++--- 5

Re: [Qemu-devel] [RFC 0/2] Attempt to implement the standby feature for assigned network devices

2018-10-25 Thread Sameeh Jubran
On Thu, Oct 25, 2018 at 5:06 PM Sameeh Jubran wrote: > > From: Sameeh Jubran > > Hi all, > > Background: > > There has been a few attempts to implement the standby feature for vfio > assigned devices which aims to enable the migration of such devices. This > is a

Re: [Qemu-devel] [Bug 1791947] Re: isochronous usb device forwarding with windows 10 and xhci freezes

2018-09-25 Thread Sameeh Jubran
charredir1,name=usbredir -device > usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device > virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 -msg timestamp=on > > Cheers, > Florian > > To manage notifications about this bug go to: > https://bugs.launchpad.net/qemu/+bug/1791947/+subscriptions > -- Respectfully, Sameeh Jubran Linkedin Software Engineer @ Daynix.

[Qemu-devel] Converting PCIDevice to VirtIODevice

2018-09-26 Thread Sameeh Jubran
Hi All, I have used the function "pci_qdev_find_device" to find a device using it's id. This is a virtio device and I'm trying to convert it to VirtIODevice. What's the best way to do this? Simply converting it to DeviceState doesn't work and I think I should access the underlying virtio pci bus

Re: [Qemu-devel] [PATCH v3 1/5] qga: win32: fix crashes when PCI info cannot be retrived

2018-09-27 Thread Sameeh Jubran
On Thu, Sep 27, 2018 at 12:06 PM Tomáš Golembiovský wrote: > Hi Michael, > > thanks for looking into this. My comments are below. > > Adding Sameeh... > > > On Wed, 26 Sep 2018 12:15:48 -0500 > Michael Roth wrote: > > > Quoting Tomáš Golembiovský (2018-09-07 06:42:09) > > > The guest-get-fsinfo

[Qemu-devel] Hotplug handler

2018-10-03 Thread Sameeh Jubran
Hi all, I am trying to get the hotplug handler of a pci device in Qemu using "qdev_get_hotplug_handler" function. This function simply tries to get the hotplug handler from the parent bus. For some reason it's always null. Why it is not initialized? Thanks!

Re: [Qemu-devel] [PATCH v4 03/11] build: rename CONFIG_QGA_NTDDDISK to CONFIG_QGA_NTDDSCSI

2018-10-07 Thread Sameeh Jubran
Reviewed-by: Sameeh Jubran On Thu, Oct 4, 2018 at 4:23 PM Marc-André Lureau wrote: > > Hi > > On Thu, Oct 4, 2018 at 3:22 PM Tomáš Golembiovský wrote: > > > > There was inconsistency between commits: > > > > 50cbebb9a3 configure: add configure check for nt

Re: [Qemu-devel] Hotplug handler

2018-10-07 Thread Sameeh Jubran
\ -chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 \ -device virtio-serial \ -device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 \ -monitor stdio On Thu, Oct 4, 2018 at 2:20 PM Igor Mammedov wrote: > On Wed, 3 Oct 2018 19:50:58 +0300 > Sameeh Jubran wrote: > &

Re: [Qemu-devel] [PATCH v4 11/11] qga-win: demystify namespace striping

2018-10-07 Thread Sameeh Jubran
ot;) == TRUE)) { > > +name = g_strdup(&guid[4]); > > I find "guid + 4" easier to read though > > > +} else { > > +name = g_strdup(guid); > > +} > > > > if (!QueryDosDevice(name, dev_name, ARRAY_SIZE(dev_name))) { > > error_setg_win32(errp, GetLastError(), "failed to get dos device > > name"); > > -- > > 2.19.0 > > > -- Respectfully, Sameeh Jubran Linkedin Software Engineer @ Daynix.

Re: [Qemu-devel] [PATCH v4 09/11] qga-win: handle multi-disk volumes

2018-10-07 Thread Sameeh Jubran
sizeof(GuestDiskAddress)); > + > +/* Disk numbers directly correspond to numbers used in UNCs > + * > + * See documentation for DISK_EXTENT: > + * > https://docs.microsoft.com/en-us/windows/desktop/api/winioctl/ns-winioctl-_disk_extent &

Re: [Qemu-devel] [RFC 1/1] qemu-ga: add missing libpcre to MSI build

2018-11-21 Thread Sameeh Jubran
> >> >> Guid="{6C117C78-0F47-4B07-8F34-6BEE11643829}"> > >>>> Source="$(var.Mingw_bin)/libwinpthread-1.dll" KeyPath="yes" DiskId="1"/> > >> > >> + >> Guid=&quo

[Qemu-devel] [RFC 5/6] virtio-net: steering mode: Implement rss support

2018-08-30 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- hw/net/virtio-net.c | 122 1 file changed, 105 insertions(+), 17 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index e7c4ce6f66..4a52a6a1d0 100644 --- a/hw/net

[Qemu-devel] [RFC 0/6] Virtio-net: Support RSS

2018-08-30 Thread Sameeh Jubran
From: Sameeh Jubran This series implements the Steering Mode feature which was introduced on the virtio-dev list a while ago, which can be found here: * https://lists.oasis-open.org/archives/virtio-dev/201805/msg00024.html The first three patches add some infrastructure support that is used in

[Qemu-devel] [RFC 3/6] vhost-net: Expose vhost_net_get_fd

2018-08-30 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- hw/net/vhost_net.c | 2 +- include/hw/virtio/virtio-net.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index e037db63a3..c0bff725c9 100644 --- a/hw/net/vhost_net.c

[Qemu-devel] [RFC 4/6] virtio-net: implement steering mode feature

2018-08-30 Thread Sameeh Jubran
From: Sameeh Jubran Signed-off-by: Sameeh Jubran --- hw/net/virtio-net.c | 65 + include/hw/virtio/virtio-net.h | 3 ++ include/standard-headers/linux/virtio_net.h | 55 3 files changed, 116 insertions

[Qemu-devel] [RFC 1/6] Add bpf support to qemu

2018-08-30 Thread Sameeh Jubran
From: Sameeh Jubran This commit adds the bpf header provided by Linux to Qemu. Signed-off-by: Sameeh Jubran --- MAINTAINERS | 5 + configure | 44 + scripts/update-linux-headers.sh | 8 ++-- 3 files

[Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls

2018-08-30 Thread Sameeh Jubran
From: Sameeh Jubran Starting from kernel v4.16 tun device supports TUNSETSTEERINGEBPF and TUNSETFILTEREBPF. Signed-off-by: Sameeh Jubran --- include/net/net.h | 3 ++- net/tap-bsd.c | 5 + net/tap-linux.c | 29 - net/tap-linux.h | 3 ++- net/tap

Re: [Qemu-devel] [RFC 0/6] Virtio-net: Support RSS

2018-09-03 Thread Sameeh Jubran
On Mon, Sep 3, 2018 at 7:15 AM, Jason Wang wrote: > > > On 2018年08月30日 22:27, Sameeh Jubran wrote: >> >> From: Sameeh Jubran >> >> This series implements the Steering Mode feature which was introduced on >> the >> virtio-dev list a while ago, whic

Re: [Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls

2018-09-03 Thread Sameeh Jubran
On Mon, Sep 3, 2018 at 6:24 AM, Jason Wang wrote: > > > On 2018年08月30日 22:27, Sameeh Jubran wrote: >> >> From: Sameeh Jubran >> >> Starting from kernel v4.16 tun device supports TUNSETSTEERINGEBPF and >> TUNSETFILTEREBPF. >> >> Signed-off-by

Re: [Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls

2018-09-03 Thread Sameeh Jubran
On Thu, Aug 30, 2018 at 6:21 PM, Eric Blake wrote: > On 08/30/2018 09:27 AM, Sameeh Jubran wrote: >> >> From: Sameeh Jubran >> >> Starting from kernel v4.16 tun device supports TUNSETSTEERINGEBPF and >> TUNSETFILTEREBPF. >> >> Signed-off-by: Sam

Re: [Qemu-devel] [RFC 5/6] virtio-net: steering mode: Implement rss support

2018-09-03 Thread Sameeh Jubran
On Mon, Sep 3, 2018 at 6:48 AM, Jason Wang wrote: > > > On 2018年08月30日 22:27, Sameeh Jubran wrote: >> >> From: Sameeh Jubran >> >> Signed-off-by: Sameeh Jubran >> --- >> hw/net/virtio-net.c | 122 >> +

Re: [Qemu-devel] [RFC 3/6] vhost-net: Expose vhost_net_get_fd

2018-09-03 Thread Sameeh Jubran
On Mon, Sep 3, 2018 at 6:24 AM, Jason Wang wrote: > > > On 2018年08月30日 22:27, Sameeh Jubran wrote: >> >> From: Sameeh Jubran >> >> Signed-off-by: Sameeh Jubran > > > Better explain the motivation in the commit log. I used to use this function in my in

Re: [Qemu-devel] [RFC 1/6] Add bpf support to qemu

2018-09-03 Thread Sameeh Jubran
On Mon, Sep 3, 2018 at 2:59 PM, Daniel P. Berrangé wrote: > On Thu, Aug 30, 2018 at 05:27:03PM +0300, Sameeh Jubran wrote: >> From: Sameeh Jubran >> >> This commit adds the bpf header provided by Linux to Qemu. > > s/Qemu/QEMU/ > >> >> Signed-off

Re: [Qemu-devel] [RFC 1/6] Add bpf support to qemu

2018-09-03 Thread Sameeh Jubran
n.) That's what Daniel suggested and I though it should be good for the reasons above. You have good points as well. Both approaches are okay with me :) > > thanks > -- PMM -- Respectfully, Sameeh Jubran Linkedin Software Engineer @ Daynix.

Re: [Qemu-devel] [RFC 6/6] virtio-net: rss: Add bpf filter

2018-09-03 Thread Sameeh Jubran
On Mon, Sep 3, 2018 at 2:54 PM, Daniel P. Berrangé wrote: > On Thu, Aug 30, 2018 at 05:27:08PM +0300, Sameeh Jubran wrote: >> From: Sameeh Jubran >> >> Signed-off-by: Sameeh Jubran >> --- >> hw/net/rss_bpf_insns.h | 3992 >> ++

Re: [Qemu-devel] [RFC 4/6] virtio-net: implement steering mode feature

2018-09-03 Thread Sameeh Jubran
On Mon, Sep 3, 2018 at 6:34 AM, Jason Wang wrote: > > > On 2018年08月30日 22:27, Sameeh Jubran wrote: >> >> From: Sameeh Jubran >> >> Signed-off-by: Sameeh Jubran >> --- >> hw/net/virtio-net.c | 65 >> ++

  1   2   >