Skip to content
  • Paul Durrant's avatar
    c4583c8c
    xen-bus: reduce scope of backend watch · c4583c8c
    Paul Durrant authored
    
    
    Currently a single watch on /local/domain/X/backend is registered by each
    QEMU process running in service domain X (where X is usually 0). The purpose
    of this watch is to ensure that QEMU is notified when the Xen toolstack
    creates a new device backend area.
    Such a backend area is specific to a single frontend area created for a
    specific guest domain and, since each QEMU process is also created to service
    a specfic guest domain, it is unnecessary and inefficient to notify all QEMU
    processes.
    Only the QEMU process associated with the same guest domain need
    receive the notification. This patch re-factors the watch registration code
    such that notifications are targetted appropriately.
    
    Reported-by: default avatarJerome Leseinne <jerome.leseinne@gmail.com>
    Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
    Reviewed-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
    Message-Id: <20201001081500.1026-1-paul@xen.org>
    Signed-off-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
    c4583c8c
    xen-bus: reduce scope of backend watch
    Paul Durrant authored
    
    
    Currently a single watch on /local/domain/X/backend is registered by each
    QEMU process running in service domain X (where X is usually 0). The purpose
    of this watch is to ensure that QEMU is notified when the Xen toolstack
    creates a new device backend area.
    Such a backend area is specific to a single frontend area created for a
    specific guest domain and, since each QEMU process is also created to service
    a specfic guest domain, it is unnecessary and inefficient to notify all QEMU
    processes.
    Only the QEMU process associated with the same guest domain need
    receive the notification. This patch re-factors the watch registration code
    such that notifications are targetted appropriately.
    
    Reported-by: default avatarJerome Leseinne <jerome.leseinne@gmail.com>
    Signed-off-by: default avatarPaul Durrant <pdurrant@amazon.com>
    Reviewed-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
    Message-Id: <20201001081500.1026-1-paul@xen.org>
    Signed-off-by: default avatarAnthony PERARD <anthony.perard@citrix.com>
Loading