Displaying 2 results from an estimated 2 matches for "pbuf_lock".
Did you mean:
buf_lock
2013 Aug 16
7
[PATCH v2] xen/console: buffer and show origin of guest PV writes
...truct domain *cd = current->domain;
char c = *val;
BUG_ON(bytes != 1);
@@ -495,17 +494,16 @@ static int hvm_print_line(
if ( !isprint(c) && (c != ''\n'') && (c != ''\t'') )
return X86EMUL_OKAY;
- spin_lock(&hd->pbuf_lock);
- hd->pbuf[hd->pbuf_idx++] = c;
- if ( (hd->pbuf_idx == (HVM_PBUF_SIZE - 2)) || (c == ''\n'') )
+ spin_lock(&cd->pbuf_lock);
+ if ( c != ''\n'' )
+ cd->pbuf[cd->pbuf_idx++] = c;
+ if ( (cd->pbuf_idx == (DOMAIN_PBUF_SIZ...
2013 Sep 09
0
[PATCH v3] xen/console: buffer and show origin of guest PV writes
...truct domain *cd = current->domain;
char c = *val;
BUG_ON(bytes != 1);
@@ -495,17 +494,16 @@ static int hvm_print_line(
if ( !isprint(c) && (c != ''\n'') && (c != ''\t'') )
return X86EMUL_OKAY;
- spin_lock(&hd->pbuf_lock);
- hd->pbuf[hd->pbuf_idx++] = c;
- if ( (hd->pbuf_idx == (HVM_PBUF_SIZE - 2)) || (c == ''\n'') )
+ spin_lock(&cd->pbuf_lock);
+ if ( c != ''\n'' )
+ cd->pbuf[cd->pbuf_idx++] = c;
+ if ( (cd->pbuf_idx == (DOMAIN_PBUF_SIZ...