mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
qemu: remove qemuGetDomainDefaultHugepath
It is no longer used. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
07c6738460
commit
c264cb1b1c
@ -1899,30 +1899,6 @@ qemuGetDomainHugepagePath(const virDomainDef *def,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* qemuGetDomainDefaultHugepath:
|
|
||||||
* @def: domain definition
|
|
||||||
* @hugetlbfs: array of configured hugepages
|
|
||||||
* @nhugetlbfs: number of item in the array
|
|
||||||
*
|
|
||||||
* Callers must ensure that @hugetlbfs contains at least one entry.
|
|
||||||
*
|
|
||||||
* Returns 0 on success, -1 otherwise.
|
|
||||||
* */
|
|
||||||
char *
|
|
||||||
qemuGetDomainDefaultHugepath(const virDomainDef *def,
|
|
||||||
virHugeTLBFSPtr hugetlbfs,
|
|
||||||
size_t nhugetlbfs)
|
|
||||||
{
|
|
||||||
virHugeTLBFSPtr p;
|
|
||||||
|
|
||||||
if (!(p = virFileGetDefaultHugepage(hugetlbfs, nhugetlbfs)))
|
|
||||||
p = &hugetlbfs[0];
|
|
||||||
|
|
||||||
return qemuGetDomainHugepagePath(def, p);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* qemuGetDomainHupageMemPath: Construct HP enabled memory backend path
|
* qemuGetDomainHupageMemPath: Construct HP enabled memory backend path
|
||||||
*
|
*
|
||||||
|
@ -374,9 +374,6 @@ int qemuTranslateSnapshotDiskSourcePool(virDomainSnapshotDiskDefPtr def);
|
|||||||
char * qemuGetBaseHugepagePath(virHugeTLBFSPtr hugepage);
|
char * qemuGetBaseHugepagePath(virHugeTLBFSPtr hugepage);
|
||||||
char * qemuGetDomainHugepagePath(const virDomainDef *def,
|
char * qemuGetDomainHugepagePath(const virDomainDef *def,
|
||||||
virHugeTLBFSPtr hugepage);
|
virHugeTLBFSPtr hugepage);
|
||||||
char * qemuGetDomainDefaultHugepath(const virDomainDef *def,
|
|
||||||
virHugeTLBFSPtr hugetlbfs,
|
|
||||||
size_t nhugetlbfs);
|
|
||||||
|
|
||||||
int qemuGetDomainHupageMemPath(const virDomainDef *def,
|
int qemuGetDomainHupageMemPath(const virDomainDef *def,
|
||||||
virQEMUDriverConfigPtr cfg,
|
virQEMUDriverConfigPtr cfg,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user