virtio-balloon.c (dc1e1350f8061021df765b396295329797d66933) | virtio-balloon.c (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02) |
---|---|
1/* 2 * Virtio Balloon Device 3 * 4 * Copyright IBM, Corp. 2008 5 * Copyright (C) 2011 Red Hat, Inc. 6 * Copyright (C) 2011 Amit Shah <amit.shah@redhat.com> 7 * 8 * Authors: --- 296 unchanged lines hidden (view full) --- 305 if (dev->actual != oldactual) { 306 qapi_event_send_balloon_change(vm_ram_size - 307 ((ram_addr_t) dev->actual << VIRTIO_BALLOON_PFN_SHIFT), 308 &error_abort); 309 } 310 trace_virtio_balloon_set_config(dev->actual, oldactual); 311} 312 | 1/* 2 * Virtio Balloon Device 3 * 4 * Copyright IBM, Corp. 2008 5 * Copyright (C) 2011 Red Hat, Inc. 6 * Copyright (C) 2011 Amit Shah <amit.shah@redhat.com> 7 * 8 * Authors: --- 296 unchanged lines hidden (view full) --- 305 if (dev->actual != oldactual) { 306 qapi_event_send_balloon_change(vm_ram_size - 307 ((ram_addr_t) dev->actual << VIRTIO_BALLOON_PFN_SHIFT), 308 &error_abort); 309 } 310 trace_virtio_balloon_set_config(dev->actual, oldactual); 311} 312 |
313static uint64_t virtio_balloon_get_features(VirtIODevice *vdev, uint64_t f) | 313static uint64_t virtio_balloon_get_features(VirtIODevice *vdev, uint64_t f, 314 Error **errp) |
314{ 315 VirtIOBalloon *dev = VIRTIO_BALLOON(vdev); 316 f |= dev->host_features; 317 virtio_add_feature(&f, VIRTIO_BALLOON_F_STATS_VQ); 318 return f; 319} 320 321static void virtio_balloon_stat(void *opaque, BalloonInfo *info) --- 141 unchanged lines hidden --- | 315{ 316 VirtIOBalloon *dev = VIRTIO_BALLOON(vdev); 317 f |= dev->host_features; 318 virtio_add_feature(&f, VIRTIO_BALLOON_F_STATS_VQ); 319 return f; 320} 321 322static void virtio_balloon_stat(void *opaque, BalloonInfo *info) --- 141 unchanged lines hidden --- |