On 07/25/2011 10:08 PM, Anthony Liguori wrote:
+static void as_memory_ioeventfd_add(AddressSpace *as,
MemoryRegionIoeventfd *fd)
+{
+int r;
+
+if (!fd-match_data || fd-addr.size != 4) {
+abort();
+}
+
+r = kvm_set_ioeventfd_mmio_long(fd-fd, fd-addr.start,
fd-data,
As with the rest of the memory API, the caller associates an eventfd
with an address, and the memory API takes care of registering or
unregistering when the address is made visible or invisible to the
guest.
Signed-off-by: Avi Kivity a...@redhat.com
---
memory.c | 230
On Mon, 25 Jul 2011, Avi Kivity wrote:
As with the rest of the memory API, the caller associates an eventfd
with an address, and the memory API takes care of registering or
unregistering when the address is made visible or invisible to the
guest.
Signed-off-by: Avi Kivity a...@redhat.com
On 07/25/2011 06:16 PM, malc wrote:
On Mon, 25 Jul 2011, Avi Kivity wrote:
As with the rest of the memory API, the caller associates an eventfd
with an address, and the memory API takes care of registering or
unregistering when the address is made visible or invisible to the
guest.
On Mon, 25 Jul 2011, Avi Kivity wrote:
On 07/25/2011 06:16 PM, malc wrote:
On Mon, 25 Jul 2011, Avi Kivity wrote:
As with the rest of the memory API, the caller associates an eventfd
with an address, and the memory API takes care of registering or
unregistering when the address
On 07/25/2011 06:22 PM, malc wrote:
+}
+if (a.fd b.fd) {
+return true;
+} else {
if (a.fd b.fd) {
+return false;
+}
}
CODING_STYLE permits braceless else if.
Braces..
On Mon, 25 Jul 2011, Avi Kivity wrote:
On 07/25/2011 06:22 PM, malc wrote:
+}
+if (a.fd b.fd) {
+return true;
+} else {
if (a.fd b.fd) {
+return false;
+}
}
On 07/25/2011 06:38 PM, malc wrote:
On Mon, 25 Jul 2011, Avi Kivity wrote:
On 07/25/2011 06:22 PM, malc wrote:
+}
+if (a.fdb.fd) {
+return true;
+} else {
if (a.fdb.fd) {
On 07/25/2011 09:02 AM, Avi Kivity wrote:
As with the rest of the memory API, the caller associates an eventfd
with an address, and the memory API takes care of registering or
unregistering when the address is made visible or invisible to the
guest.
Signed-off-by: Avi Kivitya...@redhat.com
---