WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH, RFC]: qemu: hang-free/error-tolerant PCI hot-plu

On Fri, 2010-07-30 at 17:47 +0100, Gianni Tedesco wrote:
> +static int pci_ins_check(libxl_ctx *ctx, uint32_t domid, const char *state, 
> void *priv)
> +{
> +    char *orig_state = priv;
> +
> +    if ( !strcmp(state, "pci-insert-failed") )
> +        return -1;
> +    if ( !strcmp(state, "pci-inserted") )
> +        return 0;
> +    if ( !strcmp(state, orig_state) )
> +        return 1;
> +
> +    return -1;

This should probably return 1 to keep looking for one or the other
states in-case another operation is ongoing due to another tool-stack
instance actually.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel