Commit Graph
16 Commits
Author SHA1 Message Date
Kostiantyn Kostiuk a9ecb1dc1e balloon: EvtIoStop change suspend action behaviour
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-08-30 17:10:24 +03:00
Viktor Prutyanov 20e93d2702 balloon: fix SDV issues
- EvtIoStopCancel:
    Requires EvtIoStop to unmark request cancellable

- EvtIoStopCompleteOrStopAck:
    Requires EvIoStop to complete/cancel/postpone request

Signed-off-by: Viktor Prutyanov <[email protected]>
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
2021-08-30 17:10:24 +03:00
Sameeh Jubran cf1c08e200 Balloon: WPP: Fix compilation errors
Signed-off-by: Sameeh Jubran <[email protected]>
2018-03-24 22:47:57 +03:00
Ladi Prosek 321c0da494 balloon: Make balloon/sys build both the service and no-service driver
This commit merges the balloon driver sources in stable branch
into master. A single code-base can now produce both the
standalone "no-service" flavor of the driver as well as the
traditional one which requires the user-mode service running.
The newly introduced USE_BALLOON_SERVICE macro is used to
distinguish between the two flavors.

Signed-off-by: Ladi Prosek <[email protected]>
2017-03-23 09:43:23 +01:00
Alexey V. Kostyushko 11bbbe3b0b Balloon: replace filequeue with workitem
User-mode service had used file queue on device.
So it was removed and replaced by workitem queued from dpc directly
Now, there is no need to run user-mode service to gather stats,
but if you'll do there will be no errors.

Workitem will push stats to virtio exactly same times as isr was received.

Signed-off-by: Alexey V. Kostyushko <[email protected]>
Signed-off-by: Denis V. Lunev <[email protected]>
2016-02-07 23:06:49 +11:00
Alexey V. Kostyushko 9258ecc00b Balloon: gather stats in kernel-mode
We'll use 'officially undocumented' SYSTEM_BASIC_INFORMATION and
SYSTEM_PERFORMANCE_INFORMATION structures of ZwQuerySystemInformation
syscall. Actually they are documented in nonpublic SDK for oem vendors.

To make it clear: this API is dependable though it isn't publically
documented at MSDN, backward compatibility is kept whenever new fields
are added at the end of the structures. Definitions were taken from Garry
Nebbett 'Windows NT/2000 Native API Reference' and were checked/updated
comparing to various internet sources (such as reactos.org).

This patch only traces stats gathered from kernel. It proves that counter
values are identical to those obtained from user-mode service.
(To veryfy: change #if 0 to #if 1 in BalloonIoWrite, for Win8 add
PRINT_DEBUG to .vcxproj)

Signed-off-by: Alexey V. Kostyushko <[email protected]>
Signed-off-by: Denis V. Lunev <[email protected]>
2016-02-07 23:06:42 +11:00
Yan Vugenfirer 4b68e3b74a virtio-balloon: Fixing Visual Studio 2015 compilation
Code clean-up to compile balloon with Visual Studio 2015.

Signed-off-by: Yan Vugenfirer <[email protected]>
2015-05-05 14:14:42 +10:00
Gal Hammer d835e36b18 balloon: bz#1177063: fixed bsod on s3/s4 when service was running.
The driver didn't handle the EvtIoStop so the pending write request was
not handled during sleep/hibernate.
2015-01-06 21:04:05 +11:00
Gal Hammer 0dcf4e6737 balloon: new inverted-call write-to-device method.
New implementation which blocks write requests to the device until the
data is requested from the host side.
2014-06-12 21:10:15 +10:00
Yan Vugenfirer e2dd053965 [balloon] Sync with Vadim's repository 2012-08-14 16:20:14 +02:00
Yan Vugenfirer bd10c3ec3c Sync with Vadim's repository 2011-11-10 14:28:24 +02:00
Yan Vugenfirer 9f49609691 This repository only for the virtio library and NetKVM driver 2011-10-25 15:53:09 +02:00
Yan Vugenfirer def6e669a1 Merge latest ballon canges 2010-10-03 22:29:31 +02:00
Yan Vugenfirer 4f8c18671d [WIN-GUEST_DRIVERS] balloon: fix memory statistics report and fix service pause and uninstall logic.
Signed-off-by: Vadim Rozenfeld <[email protected]>
2010-05-25 11:55:35 +03:00
Yan Vugenfirer fc24e52757 [Balloon] Ballon driver - WHQL fixes. Merging from Vadim's repository.
Signed-off-by: Vadim Rozenfeld <[email protected]>
2010-05-16 20:26:29 +03:00
Yan Vugenfirer f6f446504d [WIN-GUEST_DRIVERS] Balloon: updated drivers and build scripts for balloon.
Signed-off-by: Vadim Rozenfeld <[email protected]>
2010-03-23 12:09:04 +02:00