Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355055
b: refs/heads/master
c: 0731572
h: refs/heads/master
i:
  355053: be5901a
  355051: e0de03d
  355047: 937900d
  355039: 2756279
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent 74e48b0 commit a26a6bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06a8f1feb9e82e5b66f781ba3e39055e3f89a641
refs/heads/master: 0731572b6c529f8e8a320dc4df6d67d9a595ecf3
12 changes: 9 additions & 3 deletions trunk/drivers/hv/hv_balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,15 +529,21 @@ static void process_info(struct hv_dynmem_device *dm, struct dm_info_msg *msg)
static void post_status(struct hv_dynmem_device *dm)
{
struct dm_status status;
struct sysinfo val;


si_meminfo(&val);
memset(&status, 0, sizeof(struct dm_status));
status.hdr.type = DM_STATUS_REPORT;
status.hdr.size = sizeof(struct dm_status);
status.hdr.trans_id = atomic_inc_return(&trans_id);


status.num_committed = vm_memory_committed();
/*
* The host expects the guest to report free memory.
* Further, the host expects the pressure information to
* include the ballooned out pages.
*/
status.num_avail = val.freeram;
status.num_committed = vm_memory_committed() + dm->num_pages_ballooned;

vmbus_sendpacket(dm->dev->channel, &status,
sizeof(struct dm_status),
Expand Down

0 comments on commit a26a6bf

Please sign in to comment.