Skip to content
  • zhlcindy@gmail.com's avatar
    Add USB option in machine options · 094b287f
    zhlcindy@gmail.com authored
    
    
    When -usb option is used, global varible usb_enabled is set.
    And all the plaform will create one USB controller according
    to this variable. In fact, global varibles make code hard
    to read.
    
    So this patch is to remove global variable usb_enabled and
    add USB option in machine options. All the plaforms will get
    USB option value from machine options.
    
    USB option of machine options will be set either by:
      * -usb
      * -machine type=pseries,usb=on
    
    Both these ways can work now. They both set USB option in
    machine options. In the future, the first way will be removed.
    
    Signed-off-by: default avatarLi Zhang <zhlcindy@linux.vnet.ibm.com>
    Acked-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    094b287f