~ressu/+junk/xen-ubuntu

« back to all changes in this revision

Viewing changes to xen/arch/x86/hvm/intercept.c

  • Committer: sami at haahtinen
  • Date: 2011-05-23 19:11:45 UTC
  • mfrom: (3.1.3 xen)
  • Revision ID: sami@haahtinen.name-20110523191145-55rhsn3endndbbge
* Upload new version to ppa, base off the 4.1.0 package in debian
* Re-enable hvmloader:
  - Use packaged ipxe.
* Workaround incompatibility with xenstored of Xen 4.0.
* New upstream release.
* New upstream release candidate.
* Build documentation using pdflatex.
* Use python 2.6. (closes: #596545)
* Fix lintian override.
* Install new tools: xl, xenpaging.
* Enable blktap2.
  - Use own md5 implementation.
  - Fix includes.
  - Fix linking of blktap2 binaries.
  - Remove optimization setting.
* Temporarily disable hvmloader, wants to download ipxe.
* Remove xenstored pid check from xl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
 
238
238
    handler->hdl_list[num].addr = addr;
239
239
    handler->hdl_list[num].size = size;
240
 
    if ( (handler->hdl_list[num].type = type) == HVM_PORTIO )
241
 
        handler->hdl_list[num].action.portio = action;
242
 
    else
243
 
        handler->hdl_list[num].action.mmio = action;
 
240
    handler->hdl_list[num].action.ptr = action;
 
241
    handler->hdl_list[num].type = type;
244
242
    handler->num_slot++;
245
243
}
246
244
 
 
245
void relocate_io_handler(
 
246
    struct domain *d, unsigned long old_addr, unsigned long new_addr,
 
247
    unsigned long size, int type)
 
248
{
 
249
    struct hvm_io_handler *handler = &d->arch.hvm_domain.io_handler;
 
250
    int i;
 
251
 
 
252
    for ( i = 0; i < handler->num_slot; i++ )
 
253
        if ( (handler->hdl_list[i].addr == old_addr) &&
 
254
             (handler->hdl_list[i].size == size) &&
 
255
             (handler->hdl_list[i].type == type) )
 
256
            handler->hdl_list[i].addr = new_addr;
 
257
}
 
258
 
247
259
/*
248
260
 * Local variables:
249
261
 * mode: C