Blame SOURCES/kvm-monitor-Remove-usb_add-del-commands-for-Red-Hat-Enterprise-Linux.patch

d81766
From 779be22afd135cfd37eff20ce24f45166d8d6a23 Mon Sep 17 00:00:00 2001
d81766
From: Miroslav Rezanina <mrezanin@redhat.com>
d81766
Date: Wed, 6 Nov 2013 12:36:03 +0100
d81766
Subject: monitor: Remove usb_add/del commands for Red Hat Enterprise Linux
d81766
d81766
RH-Author: Miroslav Rezanina <mrezanin@redhat.com>
d81766
Message-id: <daf2ca0042519cd01a6a68d30eb76bdd8b88c9f2.1383741033.git.mrezanin@redhat.com>
d81766
Patchwork-id: 55520
d81766
O-Subject: [RHEL7 qemu-kvm PATCH v2 3/4] monitor: Remove usb_add/del commands for Red Hat Enterprise Linux
d81766
Bugzilla: 1010858
d81766
RH-Acked-by: Michal Novotny <minovotn@redhat.com>
d81766
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
d81766
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
d81766
RH-Acked-by: Eric Blake <eblake@redhat.com>
d81766
d81766
From: Miroslav Rezanina <mrezanin@redhat.com>
d81766
d81766
This is forwardport of RHEL-6 commit 754e6292b4ab41c8848171555af830ab7284f4d3:
d81766
d81766
    monitor: Remove usb_add/del commands for Red Hat Enterprise Linux
d81766
d81766
    The usb_add/del commands have been obsoleted by the device_add/del
d81766
    commands.
d81766
d81766
    Signed-off-by: Amit Shah <amit.shah@redhat.com>
d81766
d81766
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
d81766
d81766
diff --git a/hmp-commands.hx b/hmp-commands.hx
d81766
index 68153b1..6946d37 100644
d81766
--- a/hmp-commands.hx
d81766
+++ b/hmp-commands.hx
d81766
@@ -628,6 +628,7 @@ STEXI
d81766
 Compute the checksum of a memory region.
d81766
 ETEXI
d81766
 
d81766
+#if 0 /* Disabled for Red Hat Enterprise Linux */
d81766
     {
d81766
         .name       = "usb_add",
d81766
         .args_type  = "devname:s",
d81766
@@ -660,6 +661,7 @@ Remove the USB device @var{devname} from the QEMU virtual USB
d81766
 hub. @var{devname} has the syntax @code{bus.addr}. Use the monitor
d81766
 command @code{info usb} to see the devices you can remove.
d81766
 ETEXI
d81766
+#endif
d81766
 
d81766
     {
d81766
         .name       = "device_add",