[Spice-commits] server/red_dispatcher.c server/spice.h

Alexander Larsson alexl at kemper.freedesktop.org
Thu Jul 8 06:19:59 PDT 2010


 server/red_dispatcher.c |    7 -------
 server/spice.h          |    4 ----
 2 files changed, 11 deletions(-)

New commits:
commit 4f54596e0113c0692c10cfc1c25400c8070d67b3
Author: Alexander Larsson <alexl at redhat.com>
Date:   Thu Jul 8 15:18:43 2010 +0200

    server: Remove unnecessary pci id/rev checks
    
    There is no need to check the pci ids or revisions. Thats a contract
    between qemu and the driver, and spice need not care, as long as
    we get the right data from qemu.

diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c
index 539c18e..426a381 100644
--- a/server/red_dispatcher.c
+++ b/server/red_dispatcher.c
@@ -489,13 +489,6 @@ RedDispatcher *red_dispatcher_init(QXLInstance *qxl)
     sigset_t thread_sig_mask;
     sigset_t curr_sig_mask;
 
-    if (qxl->st->qif->pci_vendor != REDHAT_PCI_VENDOR_ID ||
-        qxl->st->qif->pci_id != QXL_DEVICE_ID ||
-        qxl->st->qif->pci_revision != QXL_REVISION) {
-        red_printf("pci mismatch");
-        return NULL;
-    }
-
     quic_init();
     sw_canvas_init();
 #ifdef USE_OGL
diff --git a/server/spice.h b/server/spice.h
index 99546cf..3c2c32e 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -161,10 +161,6 @@ struct QXLDevSurfaceCreate {
 struct QXLInterface {
     SpiceBaseInterface base;
 
-    uint16_t pci_vendor;
-    uint16_t pci_id;
-    uint8_t pci_revision;
-
     void (*attache_worker)(QXLInstance *qin, QXLWorker *qxl_worker);
     void (*set_compression_level)(QXLInstance *qin, int level);
     void (*set_mm_time)(QXLInstance *qin, uint32_t mm_time);


More information about the Spice-commits mailing list