Skip to contentSkip to conversation

use of struct hvm_irq_dpci in pv guests

DISCUSSION Jan Beulich 2 participants 2 messages Mar 31, 2011 – Apr 21, 2011

lore
Share & tools
lore
#0 lore raw

The per-domain pointer to this is stored in ->arch.hvm_domain.irq.dpci, hence suggesting that this is a HVM only field. do_domctl(XEN_DOMCTL_bind_pt_irq) and domain_get_irq_dpci() access it however without considering HVM-ness. In the course of splitting/shrinking struct domain, I'd therefore need to know whether this field ought to become common, or whether all accessors of the field need to get protected by is_hvm_domain().

Thanks, Jan

#1 lore raw

Hi, Jan,

I think it should be protected by is_hvm_domain(). Anyway, I have saw your patches already in upstream Xen.

Shan Haitao

2011/3/31 Jan Beulich <[email protected]>

Quoted 8 lines

The per-domain pointer to this is stored in ->arch.hvm_domain.irq.dpci, hence suggesting that this is a HVM only field. do_domctl(XEN_DOMCTL_bind_pt_irq) and domain_get_irq_dpci() access it however without considering HVM-ness. In the course of splitting/shrinking struct domain, I'd therefore need to know whether this field ought to become common, or whether all accessors of the field need to get protected by is_hvm_domain().

Quoted 8 lines

Thanks, Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel